99#include " eventpipefile.h"
1010#include " eventpipeprovider.h"
1111#include " eventpipejsonfile.h"
12-
13- #ifdef PROFILING_SUPPORTED
14- #include " eventpipeprofilerapi.h"
15- #endif
16-
1712#include " sampleprofiler.h"
1813
1914#ifdef FEATURE_PAL
@@ -28,10 +23,6 @@ EventPipeConfiguration* EventPipe::s_pConfig = NULL;
2823EventPipeFile* EventPipe::s_pFile = NULL ;
2924EventPipeJsonFile* EventPipe::s_pJsonFile = NULL ;
3025
31- #ifdef PROFILING_SUPPORTED
32- EventPipeProfilerApi* EventPipe::s_pProfilerApi = NULL ;
33- #endif
34-
3526#ifdef FEATURE_PAL
3627// This function is auto-generated from /src/scripts/genEventPipe.py
3728extern " C" void InitProvidersAndEvents ();
@@ -108,10 +99,6 @@ void EventPipe::Enable()
10899 eventPipeFileOutputPath.Printf (" Process-%d.netperf" , GetCurrentProcessId ());
109100 s_pFile = new EventPipeFile (eventPipeFileOutputPath);
110101
111- #ifdef PROFILING_SUPPORTED
112- s_pProfilerApi = new EventPipeProfilerApi ();
113- #endif
114-
115102 if (CLRConfig::GetConfigValue (CLRConfig::INTERNAL_PerformanceTracing) == 2 )
116103 {
117104 // File placed in current working directory.
@@ -200,12 +187,6 @@ void EventPipe::WriteEvent(EventPipeEvent &event, BYTE *pData, unsigned int leng
200187 _ASSERTE (s_pFile != NULL );
201188 s_pFile->WriteEvent (instance);
202189
203- #ifdef PROFILING_SUPPORTED
204- // Write to the EventPipeProfilerApi.
205- _ASSERTE (s_pProfilerApi != NULL );
206- s_pProfilerApi->WriteEvent (instance);
207- #endif
208-
209190 // Write to the EventPipeJsonFile if it exists.
210191 if (s_pJsonFile != NULL )
211192 {
@@ -229,14 +210,6 @@ void EventPipe::WriteSampleProfileEvent(SampleProfilerEventInstance &instance)
229210 s_pFile->WriteEvent (instance);
230211 }
231212
232- #ifdef PROFILING_SUPPORTED
233- // Write to the EventPipeProfilerApi.
234- if (s_pProfilerApi != NULL )
235- {
236- s_pProfilerApi->WriteEvent (instance);
237- }
238- #endif
239-
240213 // Write to the EventPipeJsonFile if it exists.
241214 if (s_pJsonFile != NULL )
242215 {
0 commit comments