Skip to content

Commit

Permalink
Merge pull request #1215 from input-output-hk/enable_gc_tracing
Browse files Browse the repository at this point in the history
chore: enable gc tracing
  • Loading branch information
bernokl committed Apr 17, 2024
2 parents 7f5eadf + f13e4d9 commit 5a3aedf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions nix/cardano-services/deployments/default.nix
Expand Up @@ -295,6 +295,7 @@ in
backend = {
enabled = true;
replicas = 3;
env.NODE_EXTRA_OPTIONS = "--trace-gc";
};
stake-pool-provider = {
enabled = true;
Expand Down
2 changes: 1 addition & 1 deletion nix/cardano-services/operables.nix
Expand Up @@ -8,7 +8,7 @@ let
mainnet preprod preprod_p2p preview preview_p2p testnet vasil-dev vasil-dev_p2p vasil-qa
*/
cardanoServicesPath = pkg: "${pkg}/libexec/incl/packages/cardano-services";
runCardanoServices = pkg: "${lib.getExe pkg.nodejs} ${cardanoServicesPath pkg}";
runCardanoServices = pkg: "${lib.getExe pkg.nodejs} \${NODE_EXTRA_OPTIONS:-} ${cardanoServicesPath pkg}";
in {
cardano-services = std.lib.ops.mkOperable rec {
package = cell.packages.cardano-services;
Expand Down
2 changes: 1 addition & 1 deletion nix/cardano-services/packages.nix
Expand Up @@ -82,7 +82,7 @@ in {
postInstall = ''
cat > $out/bin/cli <<EOF
#!${nixpkgs.bash}/bin/bash
exec "${nixpkgs.nodejs}/bin/node" "$out/libexec/$sourceRoot/packages/cardano-services/dist/cjs/cli.js" "\$@"
exec "${nixpkgs.nodejs}/bin/node" ''${NODE_EXTRA_OPTIONS:-} "$out/libexec/$sourceRoot/packages/cardano-services/dist/cjs/cli.js" "\$@"
EOF
chmod a+x $out/bin/cli
'';
Expand Down

0 comments on commit 5a3aedf

Please sign in to comment.