Windows 7 memory profiling another example

less than 1 minute read

1
2
3
4
5
6
7
8
9
10
11
12
13
@echo off
set _NT_SYMBOL_PATH=f:\src\Debug\;srv*c:\WebSymbol*http://msdl.microsoft.com/downloads/symbols
xperf -on Base+Cswitch -BufferSize 1024 -MinBuffers 512 -MaxBuffers 512
xperf -start HeapSession -heap -Pids %1 -BufferSize 1024 -MinBuffers 512 -MaxBuffers 512 -stackwalk HeapAlloc+HeapRealloc
echo.
echo Performance Trace started.
echo.
echo When done with profile actions, 
pause 
echo Generating the report. 
xperf -stop HeapSession -stop -d heapUsage.etl
echo.
start xperfview heapUsage.etl