]> granicus.if.org Git - pdns/commitdiff
teach recursor about real-memory-usage metric
authorbert hubert <bert.hubert@netherlabs.nl>
Sat, 31 Oct 2015 18:26:05 +0000 (19:26 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Sat, 31 Oct 2015 18:26:05 +0000 (19:26 +0100)
pdns/rec_channel_rec.cc

index ca922a9bcd3252c176b14eef6483b663a07db9f1..1f744ee4761cded2b8bb15b074339b62198d803a 100644 (file)
@@ -610,6 +610,7 @@ RecursorControlParser::RecursorControlParser()
   addGetStat("noedns-outqueries", &g_stats.noEdnsOutQueries);
 
   addGetStat("uptime", calculateUptime);
+  addGetStat("real-memory-usage", boost::bind(getRealMemoryUsage, string()));
 
   //  addGetStat("query-rate", getQueryRate);
   addGetStat("user-msec", getUserTimeMsec);