Skip to content

Commit

Permalink
nixos-service: Add space-heap profiling support
Browse files Browse the repository at this point in the history
  • Loading branch information
johnalotoski authored and coot committed Nov 30, 2021
1 parent fe27bcf commit 4df4ff6
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-cost" "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" "space-heap"];
default = "none";
};

Expand Down Expand Up @@ -528,6 +528,7 @@ in {
else if cfg.profiling == "space-type" then ["-hy"] ++ commonProfilingArgs
else if cfg.profiling == "space-retainer" then ["-hr"] ++ commonProfilingArgs
else if cfg.profiling == "space-bio" then ["-hb"] ++ commonProfilingArgs
else if cfg.profiling == "space-heap" then ["-hT"] ++ commonProfilingArgs
else [];
description = ''RTS profiling options'';
};
Expand Down

0 comments on commit 4df4ff6

Please sign in to comment.