1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 08:31:16 +02:00

printStats -> maybePrintStats

This commit is contained in:
Robert Hensing 2023-10-09 16:25:53 +02:00
parent f95364a803
commit c32084a12c
6 changed files with 6 additions and 6 deletions

View file

@ -2491,7 +2491,7 @@ bool EvalState::fullGC() {
#endif
}
void EvalState::printStats()
void EvalState::maybePrintStats()
{
bool showStats = getEnv("NIX_SHOW_STATS").value_or("0") != "0";

View file

@ -714,7 +714,7 @@ public:
* Performs a full memory GC before printing the statistics, so that the
* GC statistics are more accurate.
*/
void printStats();
void maybePrintStats();
/**
* Print statistics, unconditionally, cheaply, without performing a GC first.