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

Sign in to queue

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

Download

Download this episode

The Discussion

Add Your 2 Cents