Change bootstrap profile to target 4.0 framework. Bump system mono requirement to...
[mono.git] / mono / metadata / profiler.h
index c7b8f6d8a88463fad9c5be909cac96b5726ee3d1..408cac8ba31206edebff5db394d05f802d07d6c2 100644 (file)
@@ -193,6 +193,15 @@ MONO_API void mono_profiler_install_iomap (MonoProfileIomapFunc callback);
 
 MONO_API void mono_profiler_load             (const char *desc);
 
+typedef enum {
+       /* Elapsed time is tracked by user+kernel time of the process - this is the default*/
+       MONO_PROFILER_STAT_MODE_PROCESS = 0,
+       /* Elapsed time is tracked by wallclock time */
+       MONO_PROFILER_STAT_MODE_REAL = 1,
+} MonoProfileSamplingMode;
+
+MONO_API void mono_profiler_set_statistical_mode (MonoProfileSamplingMode mode, int64_t sampling_frequency_is_us);
+
 MONO_END_DECLS
 
 #endif /* __MONO_PROFILER_H__ */