From 2ab06befe9979dc893961c3eb85a137cb67cb702 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Mon, 27 Nov 2017 23:08:58 +0100 Subject: [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. --- mcs/class/Mono.Profiler.Log/Mono.Profiler.Log/LogProfiler.cs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mcs/class/Mono.Profiler.Log') 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 @@ -100,6 +100,9 @@ namespace Mono.Profiler.Log { } } + [MethodImpl (MethodImplOptions.InternalCall)] + public extern static void TriggerHeapshot (); + [MethodImpl (MethodImplOptions.InternalCall)] extern static int GetCallDepth (); -- cgit v1.2.3