dotNetTrace from Command Line

 I am trying to profile my application(service) from the command line.  I have run through the following examples provided by jetbrains, but the application doesn't get profiled. 

 

Here is the message after I kill the process I want to profile

Profiling successfully finished in 681.849 seconds

No snapshots have been collected

Here is my sample batch file

SET EP7_SERVICES_LOCATION=C:\Program Files\Acme Software 18.2
SET DOTNETTRACE_LOCATION=C:\Users\Acme\AppData\Local\JetBrains\Installations\dotTrace11
start cmd /k "%EP7_SERVICES_LOCATION%\Acme.DataManagement.exe"
rem start cmd /k "%EP7_SERVICES_LOCATION%\Acme.TaskExec.exe"


pause Launch profiler
rem start cmd /k %DOTNETTRACE_LOCATION%\ConsoleProfiler.exe xmlfile "C:\BatchRunner\Profile_TaskExec2.xml" --save-to=C:\BatchRunner\PerformanceRun_RO\Results\1\Snapshots\snapshot.TaskExec.dtp


pause Launch Simulation
rem "%EP7_SERVICES_LOCATION%\EPBatch" c:\temp\PerformanceRun.xml C:\BatchRunner\PerformanceRun_RO\Results

Taskkill /IM Acme.TaskExec.exe /F

pause

 

 

Here is link

https://www.jetbrains.com/help/profiler/Performance_Profiling__Profiling_Using_the_Command_Line.html

0
1 comment

Hi Michael,

 

Unfortunately, dotTrace can't get a snapshot from an application that is killed.

You need to properly terminate your application or use "--timeout" parameter (see "ConsoleProfiler.exe help attach" for details).

0

Please sign in to leave a comment.