diff options
author | Adam Stark <llamadonica@gmail.com> | 2018-03-26 13:46:13 -0700 |
---|---|---|
committer | Brian Robbins <brianrob@microsoft.com> | 2018-03-26 13:46:13 -0700 |
commit | 3c3596e1b31afd8a5231209d804c77315b3abe1d (patch) | |
tree | 6e27e1e54aeedeb1ec3c57b94e1d91cd2e0e0e74 /src/vm/corhost.cpp | |
parent | fa15aac7fe11d951c4b85dcb9a23285007e0c620 (diff) | |
download | coreclr-3c3596e1b31afd8a5231209d804c77315b3abe1d.tar.gz coreclr-3c3596e1b31afd8a5231209d804c77315b3abe1d.tar.bz2 coreclr-3c3596e1b31afd8a5231209d804c77315b3abe1d.zip |
Only use FEATURE_PERFTRACING and FEATURE_EVENT_TRACE features when turned on (#17232)
Diffstat (limited to 'src/vm/corhost.cpp')
-rw-r--r-- | src/vm/corhost.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/vm/corhost.cpp b/src/vm/corhost.cpp index 2b67f19f2b..810c45ffd7 100644 --- a/src/vm/corhost.cpp +++ b/src/vm/corhost.cpp @@ -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" @@ -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 |