1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-12 21:46:01 +01:00

libexpr: Track and show GC time and cycle number

This commit is contained in:
Robert Hensing 2024-07-22 12:56:01 +02:00
parent 0ec5e3a1bc
commit b16861d82e
3 changed files with 32 additions and 0 deletions

View file

@ -1,6 +1,8 @@
#pragma once
///@file
#include <cstddef>
namespace nix {
/**
@ -13,4 +15,9 @@ void initGC();
*/
void assertGCInitialized();
/**
* The number of GC cycles since initGC().
*/
size_t getGCCycles();
}