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 16, 2021
1 parent 903fabd commit 757e891
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nix/nixos/cardano-node-service.nix
Original file line number Diff line number Diff line change
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 757e891

Please sign in to comment.