[Profiler] Add coverage information to the log profiler
[mono.git] / mono / profiler / proflog.h
index ea3b267dab327282843b4c1432e3b789737742b1..8b7260bb1eb134047029febaf63e6141ec54a79b 100644 (file)
@@ -5,7 +5,7 @@
 #define LOG_HEADER_ID 0x4D505A01
 #define LOG_VERSION_MAJOR 0
 #define LOG_VERSION_MINOR 4
-#define LOG_DATA_VERSION 9
+#define LOG_DATA_VERSION 10
 /*
  * Changes in data versions:
  * version 2: added offsets in heap walk
@@ -15,6 +15,7 @@
  * version 6: added optional backtrace in sampling info
  * version 8: added TYPE_RUNTIME and JIT helpers/trampolines
  * version 9: added MONO_PROFILER_CODE_BUFFER_EXCEPTION_HANDLING
+ * version 10: added TYPE_COVERAGE
  */
 
 enum {
@@ -27,6 +28,7 @@ enum {
        TYPE_HEAP,
        TYPE_SAMPLE,
        TYPE_RUNTIME,
+       TYPE_COVERAGE,
        /* extended type for TYPE_HEAP */
        TYPE_HEAP_START  = 0 << 4,
        TYPE_HEAP_END    = 1 << 4,
@@ -70,6 +72,11 @@ enum {
        TYPE_SAMPLE_COUNTERS      = 4 << 4,
        /* extended type for TYPE_RUNTIME */
        TYPE_JITHELPER = 1 << 4,
+       /* extended type for TYPE_COVERAGE */
+       TYPE_COVERAGE_ASSEMBLY = 0 << 4,
+       TYPE_COVERAGE_METHOD   = 1 << 4,
+       TYPE_COVERAGE_STATEMENT = 2 << 4,
+       TYPE_COVERAGE_CLASS = 3 << 4,
        TYPE_END
 };
 
@@ -84,4 +91,3 @@ enum {
 };
 
 #endif /* __MONO_PROFLOG_H__ */
-