From 1b6ddbc05c6d8f349ae04f609eb7bbb678d7e2d7 Mon Sep 17 00:00:00 2001 From: Mukul Sabharwal Date: Sun, 4 Aug 2019 16:07:29 -0700 Subject: [PATCH] add managed apis --- CoreCLRProfiler/managed/Interop.cs | 6 ++++++ .../managed/Microsoft.BPerf.ProfilerInterop.nuspec | 1 + 2 files changed, 7 insertions(+) diff --git a/CoreCLRProfiler/managed/Interop.cs b/CoreCLRProfiler/managed/Interop.cs index 298eaa3..871d31c 100644 --- a/CoreCLRProfiler/managed/Interop.cs +++ b/CoreCLRProfiler/managed/Interop.cs @@ -46,6 +46,9 @@ [DllImport(dllName)] public static extern IntPtr GetTotalCachedMethodsRestored(); + [DllImport(dllName)] + public static extern IntPtr GetTotalCachedMethodsMachineCodeBytesRestored(); + [DllImport(dllName)] public static extern IntPtr GetTotalNumberOfRuntimeSuspsensions(); @@ -106,6 +109,9 @@ [DllImport(dllName)] public static extern IntPtr GetGen3HeapSize(); + [DllImport(dllName)] + public static extern IntPtr GetFrozenHeapSize(); + [DllImport(dllName)] public static extern IntPtr GetNumberOfGCSegments(); diff --git a/CoreCLRProfiler/managed/Microsoft.BPerf.ProfilerInterop.nuspec b/CoreCLRProfiler/managed/Microsoft.BPerf.ProfilerInterop.nuspec index 0490efa..1111203 100644 --- a/CoreCLRProfiler/managed/Microsoft.BPerf.ProfilerInterop.nuspec +++ b/CoreCLRProfiler/managed/Microsoft.BPerf.ProfilerInterop.nuspec @@ -15,5 +15,6 @@ + \ No newline at end of file