Skip to content

Commit

Permalink
cardano-node-service: fix time profiling arg handling
Browse files Browse the repository at this point in the history
  • Loading branch information
deepfire committed Apr 6, 2023
1 parent b1d6449 commit 9a71dea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nix/nixos/cardano-node-service.nix
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ in {
type = types.listOf types.str;
default = let commonProfilingArgs = ["--machine-readable" "-tcardano-node.stats" "-pocardano-node"]
++ lib.optional (cfg.eventlog) "-l";
in if cfg.profiling == "time" then ["-P"] ++ commonProfilingArgs
in if cfg.profiling == "time" then ["-p"] ++ commonProfilingArgs
else if cfg.profiling == "space" then ["-h"] ++ commonProfilingArgs
else if cfg.profiling == "space-cost" then ["-hc"] ++ commonProfilingArgs
else if cfg.profiling == "space-module" then ["-hm"] ++ commonProfilingArgs
Expand Down

0 comments on commit 9a71dea

Please sign in to comment.