Unable to collect the trace, got the error "One or more errors occurred. (Could not find a part of the path"
madhub opened this issue · 4 comments
madhub commented
Hi
Just the tool I was looking for, I was planning to write myself specifically to get the thread stack .
I cloned you repo & built locally , I am getting following error when I ran with .net core 3 app.
DotNetEventPipe.exe collect -p 8924 -d 60 -f demo
Process ID : 8924
Duration : 60
Trace file : E:\dev\dotnetapps\EventPipe-Diagnostics\DotNetEventPipe\bin\Debug\netcoreapp3.1\traces\demo.nettrace
[Trace started...]
One or more errors occurred. (Could not find a part of the path 'E:\dev\dotnetapps\EventPipe-Diagnostics\DotNetEventPipe\bin\Debug\netcoreapp3.1\traces\demo.nettrace'.)
If i give path for the trace file it works , DotNetEventPipe.exe collect -p 8924 -d 60 -f c:\dev\demo, but documentation says without path
Usage:
DotNetEventPipe collect [options]
Options:
-p, --processId <pid> (REQUIRED) The process id to collect the trace for.
-d, --duration <duration> Duration in seconds to run the trace.
-f, --traceFilename <filename> Trace file name **(without path).**
-?, -h, --help Show help and usage information
sukesh-ak commented
Thank you. Will investigate and fix it.
sukesh-ak commented
Can you open this as a separate issue? Will check in a while.
madhub commented
done
sukesh-ak commented
Default tracefile name is 33216-20200712144534.nettrace
processId + "-" + DateTime.Now.ToString("yyyyMMddHHmmss") + ".nettrace"
Default duration is 10 seconds.
Updated in the command line help as well.
C:\DAv3\DotNetEventPipe\DotNetEventPipe\bin\Debug\netcoreapp3.1>DotNetEventPipe collect
Option '-p' is required.
collect:
Capture trace from a process using Event Pipe
Usage:
DotNetEventPipe collect [options]
Options:
-p, --processId <pid> (REQUIRED) The process id to collect the trace for.
-d, --duration <duration> Duration in seconds to run the trace. Default 10seconds
-f, --traceFilename <filename> Trace file name without path. Default pid-yyyyMMddHHmmss.nettrace
-?, -h, --help Show help and usage information