Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 095c7fe

Browse files
committed
Remove EventPipeProfiler due to time constraints
1 parent 02b8f50 commit 095c7fe

11 files changed

+2
-199
lines changed

src/inc/corprof.idl

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -621,13 +621,11 @@ typedef enum
621621

622622
COR_PRF_HIGH_IN_MEMORY_SYMBOLS_UPDATED = 0x00000002,
623623

624-
COR_PRF_HIGH_MONITOR_EVENT_PIPE = 0x00000004,
625-
626-
COR_PRF_HIGH_MONITOR_DYNAMIC_FUNCTION_UNLOADS = 0x00000008,
624+
COR_PRF_HIGH_MONITOR_DYNAMIC_FUNCTION_UNLOADS = 0x00000004,
627625

628626
COR_PRF_HIGH_REQUIRE_PROFILE_IMAGE = 0,
629627

630-
COR_PRF_HIGH_ALLOWABLE_AFTER_ATTACH = COR_PRF_HIGH_IN_MEMORY_SYMBOLS_UPDATED | COR_PRF_HIGH_MONITOR_EVENT_PIPE | COR_PRF_HIGH_MONITOR_DYNAMIC_FUNCTION_UNLOADS,
628+
COR_PRF_HIGH_ALLOWABLE_AFTER_ATTACH = COR_PRF_HIGH_IN_MEMORY_SYMBOLS_UPDATED | COR_PRF_HIGH_MONITOR_DYNAMIC_FUNCTION_UNLOADS,
631629

632630
// MONITOR_IMMUTABLE represents all flags that may only be set during initialization.
633631
// Trying to change any of these flags elsewhere will result in a
@@ -2424,17 +2422,6 @@ interface ICorProfilerCallback9 : ICorProfilerCallback8
24242422
// and subsequently unloaded.
24252423

24262424
HRESULT DynamicMethodUnloaded([in] FunctionID functionId);
2427-
2428-
HRESULT EventPipeEventDelivered(
2429-
[in] REFGUID eventGuid,
2430-
[in] DWORD eventId,
2431-
[in] DWORD eventVersion,
2432-
[in] DWORD eventThreadId,
2433-
[in] LARGE_INTEGER eventTimestamp,
2434-
[in] ULONG cbEventData,
2435-
[in, size_is(cbEventData)] LPCBYTE eventData,
2436-
[in] ULONG numStackFrames,
2437-
[in, length_is(numStackFrames)] UINT_PTR stackFrames[]);
24382425
}
24392426

24402427

src/inc/profilepriv.inl

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -736,21 +736,6 @@ inline BOOL CORProfilerInMemorySymbolsUpdatesEnabled()
736736
((&g_profControlBlock)->dwEventMaskHigh & COR_PRF_HIGH_IN_MEMORY_SYMBOLS_UPDATED));
737737
}
738738

739-
inline BOOL CORProfilerIsMonitoringEventPipe()
740-
{
741-
CONTRACTL
742-
{
743-
NOTHROW;
744-
GC_NOTRIGGER;
745-
CANNOT_TAKE_LOCK;
746-
SO_NOT_MAINLINE;
747-
}
748-
CONTRACTL_END;
749-
750-
return (CORProfilerPresent() &&
751-
((&g_profControlBlock)->dwEventMaskHigh & COR_PRF_HIGH_MONITOR_EVENT_PIPE));
752-
}
753-
754739
inline BOOL CORProfilerIsMonitoringDynamicFunctionUnloads()
755740
{
756741
CONTRACTL

src/vm/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ set(VM_SOURCES_WKS
169169
eventpipeeventinstance.cpp
170170
eventpipefile.cpp
171171
eventpipejsonfile.cpp
172-
eventpipeprofilerapi.cpp
173172
eventpipeprovider.cpp
174173
eventstore.cpp
175174
fastserializer.cpp

src/vm/eetoprofinterfaceimpl.cpp

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -6390,36 +6390,5 @@ HRESULT EEToProfInterfaceImpl::GetAssemblyReferences(LPCWSTR wszAssemblyPath, IA
63906390
return hr;
63916391
}
63926392

6393-
HRESULT EEToProfInterfaceImpl::EventPipeEventDelivered(
6394-
REFGUID eventGuid,
6395-
DWORD eventId,
6396-
DWORD eventVersion,
6397-
DWORD eventThreadId,
6398-
LARGE_INTEGER eventTimestamp,
6399-
ULONG cbEventData,
6400-
LPCBYTE eventData,
6401-
ULONG numStackFrames,
6402-
UINT_PTR stackFrames[])
6403-
{
6404-
CONTRACTL
6405-
{
6406-
THROWS;
6407-
GC_TRIGGERS;
6408-
MODE_ANY;
6409-
}
6410-
CONTRACTL_END;
6411-
6412-
CLR_TO_PROFILER_ENTRYPOINT((LF_CORPROF,
6413-
LL_INFO1000,
6414-
"**PROF: EventPipeEventDelivered.\n"));
6415-
6416-
if (m_pCallback9 == NULL)
6417-
{
6418-
return S_OK;
6419-
}
6420-
6421-
return m_pCallback9->EventPipeEventDelivered(eventGuid, eventId, eventVersion, eventThreadId, eventTimestamp, cbEventData, eventData, numStackFrames, stackFrames);
6422-
}
6423-
64246393

64256394
#endif // PROFILING_SUPPORTED

src/vm/eetoprofinterfaceimpl.h

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -483,21 +483,6 @@ class EEToProfInterfaceImpl
483483

484484
HRESULT GetAssemblyReferences(LPCWSTR wszAssemblyPath, IAssemblyBindingClosure * pClosure, AssemblyReferenceClosureWalkContextForProfAPI * pContext);
485485

486-
//
487-
// Event Pipe
488-
//
489-
490-
HRESULT EventPipeEventDelivered(
491-
REFGUID eventGuid,
492-
DWORD eventId,
493-
DWORD eventVersion,
494-
DWORD eventThreadId,
495-
LARGE_INTEGER eventTimestamp,
496-
ULONG cbEventData,
497-
LPCBYTE eventData,
498-
ULONG numStackFrames,
499-
UINT_PTR stackFrames[]);
500-
501486
private:
502487

503488
//

src/vm/eventpipe.cpp

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@
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;
2823
EventPipeFile* EventPipe::s_pFile = NULL;
2924
EventPipeJsonFile* 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
3728
extern "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
{

src/vm/eventpipe.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ class EventPipeEvent;
1515
class EventPipeFile;
1616
class EventPipeJsonFile;
1717

18-
#ifdef PROFILING_SUPPORTED
19-
class EventPipeProfilerApi;
20-
#endif
21-
2218
class MethodDesc;
2319
class SampleProfilerEventInstance;
2420

src/vm/eventpipeeventinstance.cpp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -64,20 +64,6 @@ unsigned int EventPipeEventInstance::GetLength() const
6464
return m_dataLength;
6565
}
6666

67-
unsigned int EventPipeEventInstance::GetThreadId() const
68-
{
69-
LIMITED_METHOD_CONTRACT;
70-
71-
return m_threadID;
72-
}
73-
74-
LARGE_INTEGER EventPipeEventInstance::GetTimestamp() const
75-
{
76-
LIMITED_METHOD_CONTRACT;
77-
78-
return m_timeStamp;
79-
}
80-
8167
void EventPipeEventInstance::FastSerialize(FastSerializer *pSerializer, StreamLabel metadataLabel)
8268
{
8369
CONTRACTL

src/vm/eventpipeeventinstance.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,6 @@ class EventPipeEventInstance
3131
// Get the length of the data.
3232
unsigned int GetLength() const;
3333

34-
// Get the thread id of the event.
35-
unsigned int GetThreadId() const;
36-
37-
// Get the timestamp of the event.
38-
LARGE_INTEGER GetTimestamp() const;
39-
4034
// Serialize this object using FastSerialization.
4135
void FastSerialize(FastSerializer *pSerializer, StreamLabel metadataLabel);
4236

src/vm/eventpipeprofilerapi.cpp

Lines changed: 0 additions & 41 deletions
This file was deleted.

0 commit comments

Comments
 (0)