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

Download this episode

Download Video

Description

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.

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

Timeline:
[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...
pause

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...
pause
echo .
echo ...Stopping...
echo .

xperf -stop -d virtualalloc.etl

Embed

Format

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 continue the conversation, please create a new thread in our Forums, or Contact Us and let us know.