From 9a71dea5066cfc63906831499ec4ff8af13e05dd Mon Sep 17 00:00:00 2001 From: Kosyrev Serge Date: Fri, 7 Apr 2023 03:01:39 +0800 Subject: [PATCH] cardano-node-service: fix time profiling arg handling --- nix/nixos/cardano-node-service.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/nixos/cardano-node-service.nix b/nix/nixos/cardano-node-service.nix index 0707430ef61..8d13213029a 100644 --- a/nix/nixos/cardano-node-service.nix +++ b/nix/nixos/cardano-node-service.nix @@ -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