Defrag Tools: #49 - WPT - Memory Analysis - VirtualAlloc

Download this episode

Download Video


In this episode of Defrag Tools, Andrew Richards, Chad Beeder and Larry Larsen continue walking you through the Windows Performance Toolkit (WPT). This is part 2 of 3 episodes on memory usage/leaks. Example xPerf scripts.

Defrag Tools: #7 - VMMap
Sysinternals VMMap
Aaron Margosis VirtMemTest

[00:00] - Happy 1st Birthday Defrag Tools!
[00:52] - VMMap
[01:22] - VirtMemTest
[03:43] - xperf -on PROC_THREAD+LOADER+VIRT_ALLOC -stackwalk ...
[04:46] - WPA
[06:30] - Commit Type - Allocated Inside (AI) & Outside (AO), Freed Inside (FI) & Outside (FO)
[08:02] - VirtualAlloc vs Heap

Example: "xperf - Collect VirtualAlloc.cmd"

@echo off
echo Press a key when ready to start...

echo .
echo ...Capturing...
echo .

xperf -on PROC_THREAD+LOADER+VIRT_ALLOC -stackwalk VirtualAlloc+VirtualFree -BufferSize 1024 -MinBuffers 256 -MaxBuffers 256 -MaxFile 256 -FileMode Circular

echo Press a key when you want to stop...
echo .
echo ...Stopping...
echo .

xperf -stop -d virtualalloc.etl



Available formats for this video:

Actual format may change based on video formats available and browser capability.

    The Discussion

    Comments closed

    Comments have been closed since this content was published more than 30 days ago, but if you'd like to send us feedback you can Contact Us.