Skip to content

Commit

Permalink
nixos-service: Add space-cost profiling support
Browse files Browse the repository at this point in the history
  • Loading branch information
jbgi authored and coot committed Nov 30, 2021
1 parent 6f22d7d commit fe27bcf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nix/nixos/cardano-node-service.nix
Expand Up @@ -136,7 +136,7 @@ in {
};

profiling = mkOption {
type = types.enum ["none" "time" "space" "space-module" "space-closure" "space-type" "space-retainer" "space-bio"];
type = types.enum ["none" "time" "space" "space-cost" "space-module" "space-closure" "space-type" "space-retainer" "space-bio"];
default = "none";
};

Expand Down Expand Up @@ -522,6 +522,7 @@ in {
++ lib.optional (cfg.eventlog) "-l";
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
else if cfg.profiling == "space-closure" then ["-hd"] ++ commonProfilingArgs
else if cfg.profiling == "space-type" then ["-hy"] ++ commonProfilingArgs
Expand Down

0 comments on commit fe27bcf

Please sign in to comment.