Skip to content

Commit 5a3aedf

Browse files
authored
Merge pull request #1215 from input-output-hk/enable_gc_tracing
chore: enable gc tracing
2 parents 7f5eadf + f13e4d9 commit 5a3aedf

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

nix/cardano-services/deployments/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ in
295295
backend = {
296296
enabled = true;
297297
replicas = 3;
298+
env.NODE_EXTRA_OPTIONS = "--trace-gc";
298299
};
299300
stake-pool-provider = {
300301
enabled = true;

nix/cardano-services/operables.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ let
88
mainnet preprod preprod_p2p preview preview_p2p testnet vasil-dev vasil-dev_p2p vasil-qa
99
*/
1010
cardanoServicesPath = pkg: "${pkg}/libexec/incl/packages/cardano-services";
11-
runCardanoServices = pkg: "${lib.getExe pkg.nodejs} ${cardanoServicesPath pkg}";
11+
runCardanoServices = pkg: "${lib.getExe pkg.nodejs} \${NODE_EXTRA_OPTIONS:-} ${cardanoServicesPath pkg}";
1212
in {
1313
cardano-services = std.lib.ops.mkOperable rec {
1414
package = cell.packages.cardano-services;

nix/cardano-services/packages.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ in {
8282
postInstall = ''
8383
cat > $out/bin/cli <<EOF
8484
#!${nixpkgs.bash}/bin/bash
85-
exec "${nixpkgs.nodejs}/bin/node" "$out/libexec/$sourceRoot/packages/cardano-services/dist/cjs/cli.js" "\$@"
85+
exec "${nixpkgs.nodejs}/bin/node" ''${NODE_EXTRA_OPTIONS:-} "$out/libexec/$sourceRoot/packages/cardano-services/dist/cjs/cli.js" "\$@"
8686
EOF
8787
chmod a+x $out/bin/cli
8888
'';

0 commit comments

Comments
 (0)