try something

This commit is contained in:
Tanguy 2023-05-30 12:09:33 +02:00
parent 3cdf4a88d0
commit 528b0e9401
No known key found for this signature in database
GPG Key ID: 7DD8EC6B6CE6C45E
3 changed files with 8 additions and 0 deletions

2
.env Normal file
View File

@ -0,0 +1,2 @@
NIM_COMMIT=dumpcells

View File

@ -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())

2
env.sh
View File

@ -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"