diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-05-08 14:30:27 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-05-08 14:30:27 +0200 |
commit | 2bc55aba1ed8eb75c3b352e31d153e96ce1b62bd (patch) | |
tree | 1f519a4a089b680d31e9f4997eaaf69e4389672e /src/libexpr/eval.cc | |
parent | a887892eb607d45de47e77aeb1a756f7672395b6 (diff) | |
parent | 7c6391ddc730519a632cc0ee526c94a04812d871 (diff) |
Merge remote-tracking branch 'origin/master' into flakes
Diffstat (limited to 'src/libexpr/eval.cc')
-rw-r--r-- | src/libexpr/eval.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index 2d83af983..2789ea313 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -1820,6 +1820,7 @@ void EvalState::printStats() gc.attr("totalBytes", totalBytes); } #endif + if (countCalls) { { auto obj = topObj.object("primops"); @@ -1855,6 +1856,11 @@ void EvalState::printStats() } } } + + if (getEnv("NIX_SHOW_SYMBOLS", "0") != "0") { + auto list = topObj.list("symbols"); + symbols.dump([&](const std::string & s) { list.elem(s); }); + } } } |