Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alpeters@microsoft.com>2017-11-28 01:08:58 +0300
committerAlex Rønne Petersen <alpeters@microsoft.com>2017-11-28 01:08:58 +0300
commit2ab06befe9979dc893961c3eb85a137cb67cb702 (patch)
tree028773bb77da01f3ddc81672b14bca549007320d /mcs/class/Mono.Profiler.Log
parent984f6484666c2ee6fefec949c81fdff1189c9488 (diff)
[profiler] Make it possible to trigger heapshots from the M.P.L library.
Also make it so on-demand heapshots can be done regardless of the heapshot mode in use. There really wasn't a good reason to not allow it before.
Diffstat (limited to 'mcs/class/Mono.Profiler.Log')
-rw-r--r--mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogProfiler.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogProfiler.cs b/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogProfiler.cs
index 688a84b9864..4f3e19d7357 100644
--- a/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogProfiler.cs
+++ b/mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogProfiler.cs
@@ -101,6 +101,9 @@ namespace Mono.Profiler.Log {
}
[MethodImpl (MethodImplOptions.InternalCall)]
+ public extern static void TriggerHeapshot ();
+
+ [MethodImpl (MethodImplOptions.InternalCall)]
extern static int GetCallDepth ();
[MethodImpl (MethodImplOptions.InternalCall)]