Skip to content

Commit

Permalink
Delete temporary .etl files in stop_tracing.bat
Browse files Browse the repository at this point in the history
The lab tracing batch files weren't cleaning up the temporary .etl files
after merging them. This fixes that. This change also renames the files
and the user session to avoid possible name conflicts.
  • Loading branch information
randomascii committed May 1, 2017
1 parent 8afe6de commit 8b3d142
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions LabScripts/GeneralTracing/set_vars.bat
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ rem %temp% should be a good location for temporary traces.
rem Make sure this is a fast drive, preferably an SSD.
set xperftemptracedir=%temp%
rem Select locations for the temporary kernel and user trace files.
set kernelfile=%xperftemptracedir%\kernel.etl
set userfile=%xperftemptracedir%\user.etl
set SessionName=usersession
set kernelfile=%xperftemptracedir%\lab_etw_kernel.etl
set userfile=%xperftemptracedir%\lab_etw_user.etl
set SessionName=lab_etw_usersession

rem PROC_THREAD+LOADER are required in order to know what binaries are loaded
rem and what threads are running.
Expand Down
1 change: 1 addition & 0 deletions LabScripts/GeneralTracing/stop_tracing.bat
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ set FileName=%OutputDir%trace.etl
set FileAndCompressFlags="%FileName%" -compress

xperf -merge "%kernelfile%" "%userfile%" %FileAndCompressFlags%
del "%kernelfile%" "%userfile%"

rem Generate an exporter config file based on marks in the trace and all the
rem .wpaProfile files found.
Expand Down

0 comments on commit 8b3d142

Please sign in to comment.