summaryrefslogtreecommitdiff
path: root/src/vm/corhost.cpp
diff options
context:
space:
mode:
authorBrian Robbins <brianrob@microsoft.com>2018-03-21 13:31:04 -0700
committerGitHub <noreply@github.com>2018-03-21 13:31:04 -0700
commitb82063e24b34c875891916a1bbc01728b9022bf3 (patch)
tree8af81814d735831c09ed7b354b0c1b00ff331783 /src/vm/corhost.cpp
parent166258a0b07246bb829695cebb1223b057339b49 (diff)
downloadcoreclr-b82063e24b34c875891916a1bbc01728b9022bf3.tar.gz
coreclr-b82063e24b34c875891916a1bbc01728b9022bf3.tar.bz2
coreclr-b82063e24b34c875891916a1bbc01728b9022bf3.zip
Add More Process Information to EventPipe Traces (#17080)
Diffstat (limited to 'src/vm/corhost.cpp')
-rw-r--r--src/vm/corhost.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/vm/corhost.cpp b/src/vm/corhost.cpp
index 5b31c8aad5..2b67f19f2b 100644
--- a/src/vm/corhost.cpp
+++ b/src/vm/corhost.cpp
@@ -43,6 +43,7 @@
#endif // !FEATURE_PAL
#include "stringarraylist.h"
+#include "eventpipe.h"
#ifdef FEATURE_COMINTEROP
#include "winrttypenameconverter.h"
@@ -368,6 +369,10 @@ void SetCommandLineArgs(LPCWSTR pwzAssemblyPath, int argc, LPCWSTR* argv)
}
CONTRACTL_END;
+ // Send the command line to EventPipe.
+ EventPipe::SaveCommandLine(pwzAssemblyPath, argc, argv);
+
+ // Send the command line to System.Environment.
struct _gc
{
PTRARRAYREF cmdLineArgs;