summaryrefslogtreecommitdiff
path: root/src/inc
diff options
context:
space:
mode:
authorDavid Mason <davmason@microsoft.com>2019-10-21 13:57:30 -0700
committerGitHub <noreply@github.com>2019-10-21 13:57:30 -0700
commita43e0c2108d27cc88a22a9881ce5aaaa690a1d65 (patch)
tree621ab0d01ff909b620c46699ad338ed33431d812 /src/inc
parent89091b51f3a4ececbf2af2e9fff6f9400efe8191 (diff)
downloadcoreclr-a43e0c2108d27cc88a22a9881ce5aaaa690a1d65.tar.gz
coreclr-a43e0c2108d27cc88a22a9881ce5aaaa690a1d65.tar.bz2
coreclr-a43e0c2108d27cc88a22a9881ce5aaaa690a1d65.zip
[Release/3.1] Fixes for profiler stack sampling (#27300)
* only set THREAD_IS_SUSPENDED if we are truly doing an async stack walk (#26985) * Use a new COR_PRF_SUSPEND_FOR_PROFILER in ICorProfilerCallback::RuntimeThreadSuspended() when requested by profiler (#27041) Fixes https://github.com/dotnet/coreclr/issues/26576
Diffstat (limited to 'src/inc')
-rw-r--r--src/inc/corprof.idl3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/inc/corprof.idl b/src/inc/corprof.idl
index 1d66137b10..0be4ae82fb 100644
--- a/src/inc/corprof.idl
+++ b/src/inc/corprof.idl
@@ -708,6 +708,7 @@ typedef enum
COR_PRF_SUSPEND_FOR_INPROC_DEBUGGER = 6,
COR_PRF_SUSPEND_FOR_GC_PREP = 7,
COR_PRF_SUSPEND_FOR_REJIT = 8,
+ COR_PRF_SUSPEND_FOR_PROFILER = 9,
} COR_PRF_SUSPEND_REASON;
/*
@@ -1431,6 +1432,8 @@ interface ICorProfilerCallback : IUnknown
* the runtime is preparing for a GC.
* COR_PRF_SUSPEND_FOR_INPROC_DEBUGGER
* the runtime is suspending for in-process debugging.
+ * COR_PRF_SUSPEND_FOR_PROFILER
+ * the runtime is suspending because of ICorProfilerInfo10::SuspendRuntime.
* COR_PRF_SUSPEND_OTHER
* the runtime is suspending for a reason other than those above.
*/