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

Commit 3c3596e

Browse files
llamadonicabrianrob
authored andcommitted
Only use FEATURE_PERFTRACING and FEATURE_EVENT_TRACE features when turned on (#17232)
1 parent fa15aac commit 3c3596e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/inc/eventtracebase.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ namespace ETW
611611
#else // FEATURE_EVENT_TRACE
612612
public:
613613
static VOID MethodJitting(MethodDesc *pMethodDesc, SString *namespaceOrClassName=NULL, SString *methodName=NULL, SString *methodSignature=NULL) {};
614-
static VOID MethodJitted(MethodDesc *pMethodDesc, SString *namespaceOrClassName=NULL, SString *methodName=NULL, SString *methodSignature=NULL, SIZE_T pCode = 0, ReJITID rejitID = 0) {};
614+
static VOID MethodJitted(MethodDesc *pMethodDesc, SString *namespaceOrClassName=NULL, SString *methodName=NULL, SString *methodSignature=NULL, SIZE_T pCode = 0, ReJITID rejitID = 0, BOOL bProfilerRejectedPrecompiledCode = FALSE, BOOL bReadyToRunRejectedPrecompiledCode = FALSE) {};
615615
static VOID StubInitialized(ULONGLONG ullHelperStartAddress, LPCWSTR pHelperName) {};
616616
static VOID StubsInitialized(PVOID *pHelperStartAddresss, PVOID *pHelperNames, LONG ulNoOfHelpers) {};
617617
static VOID MethodRestored(MethodDesc * pMethodDesc) {};

src/vm/corhost.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@
4343
#endif // !FEATURE_PAL
4444

4545
#include "stringarraylist.h"
46+
#ifdef FEATURE_PERFTRACING
4647
#include "eventpipe.h"
48+
#endif // FEATURE_PERFTRACING
4749

4850
#ifdef FEATURE_COMINTEROP
4951
#include "winrttypenameconverter.h"
@@ -370,7 +372,9 @@ void SetCommandLineArgs(LPCWSTR pwzAssemblyPath, int argc, LPCWSTR* argv)
370372
CONTRACTL_END;
371373

372374
// Send the command line to EventPipe.
375+
#ifdef FEATURE_PERFTRACING
373376
EventPipe::SaveCommandLine(pwzAssemblyPath, argc, argv);
377+
#endif // FEATURE_PERFTRACING
374378

375379
// Send the command line to System.Environment.
376380
struct _gc

0 commit comments

Comments
 (0)