[counters] Introduce two new counters categories, runtime and system.
authorRodrigo Kumpera <kumpera@gmail.com>
Fri, 18 Apr 2014 18:56:37 +0000 (14:56 -0400)
committerRodrigo Kumpera <kumpera@gmail.com>
Mon, 21 Apr 2014 16:23:37 +0000 (12:23 -0400)
The runtime category is for high level counters on runtime operations.
Things like number of threads, threadpool status, total memory consumption
and so on.

The system category is for synthetic counters that report system values
such as RSS, user time and load.

mono/utils/mono-counters.c
mono/utils/mono-counters.h

index 75062898784e96afda217f3ebcf8705f6c7fc23e..bdd64db58c706ae2dfe58e088f4a2b59ee624419 100644 (file)
@@ -160,7 +160,9 @@ section_names [][10] = {
        "GC",
        "Metadata",
        "Generics",
-       "Security"
+       "Security",
+       "Runtime",
+       "System",
 };
 
 static void
index f18212f90bfdc535588ad8cf1ec5d455fe04f60f..3c02893e28228fef65c489b635fb2bfac5f20c89 100644 (file)
@@ -22,6 +22,8 @@ enum {
        MONO_COUNTER_METADATA = 1 << 10,
        MONO_COUNTER_GENERICS = 1 << 11,
        MONO_COUNTER_SECURITY = 1 << 12,
+       MONO_COUNTER_RUNTIME  = 1 << 13,
+       MONO_COUNTER_SYSTEM   = 1 << 14,
        MONO_COUNTER_LAST_SECTION
 };