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

Commit

Permalink
Only use FEATURE_PERFTRACING and FEATURE_EVENT_TRACE features when tu…
Browse files Browse the repository at this point in the history
…rned on (#17232)
  • Loading branch information
llamadonica authored and brianrob committed Mar 26, 2018
1 parent fa15aac commit 3c3596e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/inc/eventtracebase.h
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ namespace ETW
#else // FEATURE_EVENT_TRACE
public:
static VOID MethodJitting(MethodDesc *pMethodDesc, SString *namespaceOrClassName=NULL, SString *methodName=NULL, SString *methodSignature=NULL) {};
static VOID MethodJitted(MethodDesc *pMethodDesc, SString *namespaceOrClassName=NULL, SString *methodName=NULL, SString *methodSignature=NULL, SIZE_T pCode = 0, ReJITID rejitID = 0) {};
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) {};
static VOID StubInitialized(ULONGLONG ullHelperStartAddress, LPCWSTR pHelperName) {};
static VOID StubsInitialized(PVOID *pHelperStartAddresss, PVOID *pHelperNames, LONG ulNoOfHelpers) {};
static VOID MethodRestored(MethodDesc * pMethodDesc) {};
Expand Down
4 changes: 4 additions & 0 deletions src/vm/corhost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@
#endif // !FEATURE_PAL

#include "stringarraylist.h"
#ifdef FEATURE_PERFTRACING
#include "eventpipe.h"
#endif // FEATURE_PERFTRACING

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

// Send the command line to EventPipe.
#ifdef FEATURE_PERFTRACING
EventPipe::SaveCommandLine(pwzAssemblyPath, argc, argv);
#endif // FEATURE_PERFTRACING

// Send the command line to System.Environment.
struct _gc
Expand Down

0 comments on commit 3c3596e

Please sign in to comment.