X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmetadata%2Fprofiler.h;h=408cac8ba31206edebff5db394d05f802d07d6c2;hb=dfebf124e54e11ef4de85addffd8d9df102e859b;hp=c7b8f6d8a88463fad9c5be909cac96b5726ee3d1;hpb=f777bc37a485df19a4700d5c41e9e58bdfa2ef54;p=mono.git diff --git a/mono/metadata/profiler.h b/mono/metadata/profiler.h index c7b8f6d8a88..408cac8ba31 100644 --- a/mono/metadata/profiler.h +++ b/mono/metadata/profiler.h @@ -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__ */