Cache .narinfo lookups

This commit is contained in:
Eelco Dolstra
2016-02-19 16:19:40 +01:00
parent a0f74047da
commit bd76f9120a
5 changed files with 115 additions and 5 deletions

View File

@ -591,7 +591,9 @@ void State::dumpStatus(Connection & conn, bool log)
auto & stats = store->getStats();
nested.attr("narInfoRead", stats.narInfoRead);
nested.attr("narInfoReadAverted", stats.narInfoReadAverted);
nested.attr("narInfoWrite", stats.narInfoWrite);
nested.attr("narInfoCacheSize", stats.narInfoCacheSize);
nested.attr("narRead", stats.narRead);
nested.attr("narReadBytes", stats.narReadBytes);
nested.attr("narReadCompressedBytes", stats.narReadCompressedBytes);