Eliminate SampleProfilerEventInstance
authorAndrew Au <andrewau@microsoft.com>
Fri, 8 Mar 2019 23:13:58 +0000 (15:13 -0800)
committerAndrew Au <cshung@gmail.com>
Sat, 9 Mar 2019 18:36:57 +0000 (10:36 -0800)
Commit migrated from https://github.com/dotnet/coreclr/commit/01024ebfc8b1d166fb345ac411e6aec571e4e571

src/coreclr/src/vm/eventpipeeventinstance.cpp
src/coreclr/src/vm/eventpipeeventinstance.h

index 03ebc6d..f1e5919 100644 (file)
@@ -157,10 +157,4 @@ bool EventPipeEventInstance::EnsureConsistency()
 }
 #endif // _DEBUG
 
-SampleProfilerEventInstance::SampleProfilerEventInstance(EventPipeSession &session, EventPipeEvent &event, Thread *pThread, BYTE *pData, unsigned int length)
-    :EventPipeEventInstance(session, event, pThread->GetOSThreadId(), pData, length, NULL /* pActivityId */, NULL /* pRelatedActivityId */)
-{
-    LIMITED_METHOD_CONTRACT;
-}
-
 #endif // FEATURE_PERFTRACING
index a0e6e54..80fd49d 100644 (file)
@@ -140,17 +140,6 @@ private:
     void SetTimeStamp(LARGE_INTEGER timeStamp);
 };
 
-// A specific type of event instance for use by the SampleProfiler.
-// This is needed because the SampleProfiler knows how to walk stacks belonging
-// to threads other than the current thread.
-class SampleProfilerEventInstance : public EventPipeEventInstance
-{
-
-public:
-
-    SampleProfilerEventInstance(EventPipeSession &session, EventPipeEvent &event, Thread *pThread, BYTE *pData, unsigned int length);
-};
-
 #endif // FEATURE_PERFTRACING
 
 #endif // __EVENTPIPE_EVENTINSTANCE_H__