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

index 89d45d4713113c4c5eda12564a0cf3f74038c177..291758752a08a526ea8c3de9c281710de4585111 100644 (file)
@@ -271,6 +271,7 @@ void declareStats(void)
   S.declare("incoming-notifications", "NOTIFY packets received.");
 
   S.declare("uptime", "Uptime of process in seconds", uptimeOfProcess);
+  S.declare("real-memory-usage", "Actual unique use of memory in bytes (approx)", getRealMemoryUsage);
 #ifdef __linux__
   S.declare("udp-recvbuf-errors", "UDP 'recvbuf' errors", udpErrorStats);
   S.declare("udp-sndbuf-errors", "UDP 'sndbuf' errors", udpErrorStats);