Monthly Archives: July 2012

Windows 7 memory profiling example

@echo off set _NT_SYMBOL_PATH=F:\src\Release\;srv*c:\WebSymbol*http://msdl.microsoft.com/downloads/symbols xperf -on base xperf -start heapsession -heap -pids %1 -stackwalk HeapAlloc+HeapRealloc -BufferSize 512 -MinBuffers 128 -MaxBuffers 512 echo. echo Performance Trace started. echo. echo When done with profile actions, pause xperf -stop heapsession -d heap.etl xperf … Continue reading

Posted in Programming, Windows | Leave a comment

Windows 7 CPU performance profiling example

@echo off set _NT_SYMBOL_PATH=f:\src\Debug\;srv*c:\WebSymbol*http://msdl.microsoft.com/downloads/symbols xperf -on Latency -stackwalk profile echo. echo Performance Trace started. echo. echo When done with profile actions, pause echo. xperf -d Trace.etl echo. start xperfview Trace.etl On windows 64 bits, the following registry should be added … Continue reading

Posted in Programming, Windows | Leave a comment