From 528b0e940176e85aa6c5389b1758b9be449e370f Mon Sep 17 00:00:00 2001 From: Tanguy Date: Tue, 30 May 2023 12:09:33 +0200 Subject: [PATCH] try something --- .env | 2 ++ beacon_chain/rpc/rest_nimbus_api.nim | 4 ++++ env.sh | 2 ++ 3 files changed, 8 insertions(+) create mode 100644 .env diff --git a/.env b/.env new file mode 100644 index 000000000..e4f733129 --- /dev/null +++ b/.env @@ -0,0 +1,2 @@ +NIM_COMMIT=dumpcells + diff --git a/beacon_chain/rpc/rest_nimbus_api.nim b/beacon_chain/rpc/rest_nimbus_api.nim index f8ddc849a..fa1954fe2 100644 --- a/beacon_chain/rpc/rest_nimbus_api.nim +++ b/beacon_chain/rpc/rest_nimbus_api.nim @@ -428,3 +428,7 @@ proc installNimbusApiHandlers*(router: var RestRouter, node: BeaconNode) = all_peers: allPeers ) ) + + router.api(MethodGet, "/nimbus/v1/debug/memory/gc_cells") do ( + ) -> RestApiResponse: + return RestApiResponse.jsonResponse(GC_dumpCells()) diff --git a/env.sh b/env.sh index c0466092a..4fcce5169 100755 --- a/env.sh +++ b/env.sh @@ -32,5 +32,7 @@ if [ -f "${USER_ENV_FILE}" ]; then set +o allexport fi + source ${ABS_PATH}/vendor/nimbus-build-system/scripts/env.sh +NIM_COMMIT="dumpcells"