From 875cd9da2b20a7228dd337aa007ae11ef02a220a Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 11 Jul 2018 20:29:18 +0200 Subject: [PATCH] Remove unused function printStats2() Closes #2282. --- src/libexpr/eval.cc | 14 -------------- src/libexpr/eval.hh | 1 - 2 files changed, 15 deletions(-) diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index e09297546..2c8a0eb42 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -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() { bool showStats = getEnv("NIX_SHOW_STATS", "0") != "0"; diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh index 46bda86d0..d0f298e16 100644 --- a/src/libexpr/eval.hh +++ b/src/libexpr/eval.hh @@ -276,7 +276,6 @@ public: /* Print statistics. */ void printStats(); - void printStats2(); void realiseContext(const PathSet & context);