Remove unused function printStats2()

Closes #2282.
This commit is contained in:
Eelco Dolstra 2018-07-11 20:29:18 +02:00
parent aa64e95bc8
commit 875cd9da2b
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
2 changed files with 0 additions and 15 deletions

View file

@ -1720,20 +1720,6 @@ bool EvalState::eqValues(Value & v1, Value & v2)
} }
void EvalState::printStats2()
{
struct rusage ru;
getrusage(RUSAGE_SELF, &ru);
GC_prof_stats_s gc;
GC_get_prof_stats(&gc, sizeof(gc));
printError("STATS %d %d %d %d %d %d",
nrValues, nrValuesFreed.load(), nrValues - nrValuesFreed,
ru.ru_maxrss,
gc.heapsize_full, gc.free_bytes_full);
}
void EvalState::printStats() void EvalState::printStats()
{ {
bool showStats = getEnv("NIX_SHOW_STATS", "0") != "0"; bool showStats = getEnv("NIX_SHOW_STATS", "0") != "0";

View file

@ -276,7 +276,6 @@ public:
/* Print statistics. */ /* Print statistics. */
void printStats(); void printStats();
void printStats2();
void realiseContext(const PathSet & context); void realiseContext(const PathSet & context);