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:
parent
0ec5e3a1bc
commit
b16861d82e
3 changed files with 32 additions and 0 deletions
|
|
@ -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();
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue