diff options
Diffstat (limited to 'src/vm/corhost.cpp')
-rw-r--r-- | src/vm/corhost.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/vm/corhost.cpp b/src/vm/corhost.cpp index 6487c52fca..b42fc28a85 100644 --- a/src/vm/corhost.cpp +++ b/src/vm/corhost.cpp @@ -39,6 +39,11 @@ #include "dwreport.h" #endif // !FEATURE_PAL +#include "stringarraylist.h" +#ifdef FEATURE_PERFTRACING +#include "eventpipe.h" +#endif // FEATURE_PERFTRACING + #ifdef FEATURE_COMINTEROP #include "winrttypenameconverter.h" #endif @@ -338,8 +343,10 @@ void SetCommandLineArgs(LPCWSTR pwzAssemblyPath, int argc, LPCWSTR* argv) } CONTRACTL_END; - // Record the command line. - SaveManagedCommandLine(pwzAssemblyPath, argc, argv); + // 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 |