mirror of
https://github.com/NixOS/nix
synced 2025-06-27 08:31:16 +02:00
printStats -> maybePrintStats
This commit is contained in:
parent
f95364a803
commit
c32084a12c
6 changed files with 6 additions and 6 deletions
|
@ -2491,7 +2491,7 @@ bool EvalState::fullGC() {
|
|||
#endif
|
||||
}
|
||||
|
||||
void EvalState::printStats()
|
||||
void EvalState::maybePrintStats()
|
||||
{
|
||||
bool showStats = getEnv("NIX_SHOW_STATS").value_or("0") != "0";
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue