summaryrefslogtreecommitdiff
path: root/src/vm/eventpipe.cpp
diff options
context:
space:
mode:
authorBrian Robbins <brianrob@microsoft.com>2017-05-15 08:15:51 -0700
committerVance Morrison <vancem@microsoft.com>2017-05-15 08:15:51 -0700
commit1cf39a4e686668f35aec3f336615c422e3cc9fec (patch)
tree5185983d205285e8093cf4d3b483725d72359338 /src/vm/eventpipe.cpp
parentf11f3d73eb432b1dc4c42df6eb1e1fb099222730 (diff)
downloadcoreclr-1cf39a4e686668f35aec3f336615c422e3cc9fec.tar.gz
coreclr-1cf39a4e686668f35aec3f336615c422e3cc9fec.tar.bz2
coreclr-1cf39a4e686668f35aec3f336615c422e3cc9fec.zip
Allow coniguration of sampling rate. (#11595)
Diffstat (limited to 'src/vm/eventpipe.cpp')
-rw-r--r--src/vm/eventpipe.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vm/eventpipe.cpp b/src/vm/eventpipe.cpp
index 6f6108d262..5805641bc5 100644
--- a/src/vm/eventpipe.cpp
+++ b/src/vm/eventpipe.cpp
@@ -446,12 +446,14 @@ CrstStatic* EventPipe::GetLock()
void QCALLTYPE EventPipeInternal::Enable(
__in_z LPCWSTR outputFile,
unsigned int circularBufferSizeInMB,
+ long profilerSamplingRateInNanoseconds,
EventPipeProviderConfiguration *pProviders,
int numProviders)
{
QCALL_CONTRACT;
BEGIN_QCALL;
+ SampleProfiler::SetSamplingRate(profilerSamplingRateInNanoseconds);
EventPipe::Enable(outputFile, circularBufferSizeInMB, pProviders, numProviders);
END_QCALL;
}