Merge pull request #1387 from akoeplinger/improve-bug652331_2
[mono.git] / mono / metadata / profiler-private.h
index 61e9eab90de88c9e30de38a1783ea22727e10e15..ed8a32f44feccbca93ced8740604bb16ee5f469c 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <mono/metadata/profiler.h>
 #include "mono/utils/mono-compiler.h"
+#include <glib.h>
 
 extern MonoProfileFlags mono_profiler_events;
 
@@ -29,16 +30,19 @@ void mono_profiler_method_leave    (MonoMethod *method) MONO_INTERNAL;
 void mono_profiler_method_jit      (MonoMethod *method) MONO_INTERNAL;
 void mono_profiler_method_end_jit  (MonoMethod *method, MonoJitInfo* jinfo, int result) MONO_INTERNAL;
 void mono_profiler_method_free     (MonoMethod *method) MONO_INTERNAL;
+void mono_profiler_method_start_invoke (MonoMethod *method) MONO_INTERNAL;
+void mono_profiler_method_end_invoke   (MonoMethod *method) MONO_INTERNAL;
 
 void mono_profiler_code_transition (MonoMethod *method, int result) MONO_INTERNAL;
 void mono_profiler_allocation      (MonoObject *obj, MonoClass *klass) MONO_INTERNAL;
 void mono_profiler_monitor_event   (MonoObject *obj, MonoProfilerMonitorEvent event) MONO_INTERNAL;
 void mono_profiler_stat_hit        (guchar *ip, void *context) MONO_INTERNAL;
 void mono_profiler_stat_call_chain (int call_chain_depth, guchar **ips, void *context) MONO_INTERNAL;
-#define MONO_PROFILER_MAX_STAT_CALL_CHAIN_DEPTH 16
 int  mono_profiler_stat_get_call_chain_depth (void) MONO_INTERNAL;
+MonoProfilerCallChainStrategy  mono_profiler_stat_get_call_chain_strategy (void) MONO_INTERNAL;
 void mono_profiler_thread_start    (gsize tid) MONO_INTERNAL;
 void mono_profiler_thread_end      (gsize tid) MONO_INTERNAL;
+void mono_profiler_thread_name     (gsize tid, const char *name) MONO_INTERNAL;
 
 void mono_profiler_exception_thrown         (MonoObject *exception) MONO_INTERNAL;
 void mono_profiler_exception_method_leave   (MonoMethod *method) MONO_INTERNAL;
@@ -56,11 +60,16 @@ void mono_profiler_class_loaded (MonoClass *klass, int result) MONO_INTERNAL;
 void mono_profiler_appdomain_event  (MonoDomain *domain, int code) MONO_INTERNAL;
 void mono_profiler_appdomain_loaded (MonoDomain *domain, int result) MONO_INTERNAL;
 
+void mono_profiler_iomap (char *report, const char *pathname, const char *new_pathname) MONO_INTERNAL;
+
 MonoProfileCoverageInfo* mono_profiler_coverage_alloc (MonoMethod *method, int entries) MONO_INTERNAL;
 void                     mono_profiler_coverage_free  (MonoMethod *method) MONO_INTERNAL;
 
 void mono_profiler_gc_event       (MonoGCEvent e, int generation) MONO_INTERNAL;
 void mono_profiler_gc_heap_resize (gint64 new_size) MONO_INTERNAL;
+void mono_profiler_gc_moves       (void **objects, int num) MONO_INTERNAL;
+void mono_profiler_gc_handle      (int op, int type, uintptr_t handle, MonoObject *obj) MONO_INTERNAL;
+void mono_profiler_gc_roots       (int num, void **objects, int *root_types, uintptr_t *extra_info) MONO_INTERNAL;
 
 void mono_profiler_code_chunk_new (gpointer chunk, int size) MONO_INTERNAL;
 void mono_profiler_code_chunk_destroy (gpointer chunk) MONO_INTERNAL;
@@ -68,5 +77,8 @@ void mono_profiler_code_buffer_new (gpointer buffer, int size, MonoProfilerCodeB
 
 void mono_profiler_runtime_initialized (void) MONO_INTERNAL;
 
+int64_t mono_profiler_get_sampling_rate (void) MONO_INTERNAL;
+MonoProfileSamplingMode mono_profiler_get_sampling_mode (void) MONO_INTERNAL;
+
 #endif /* __MONO_PROFILER_PRIVATE_H__ */