Jump to content
Nytro

Defrag Tools: #50 - WPT - Memory Analysis - Heap

Recommended Posts

Posted

[h=1]Defrag Tools: #50 - WPT - Memory Analysis - Heap[/h]

[h=3]Download[/h] bg-help.gif [h=3]How do I download the videos?[/h]

  • To download, right click the file type you would like and pick “Save target as…” or “Save link as…”

[h=3]Why should I download videos from Channel9?[/h]

  • It's an easy way to save the videos you like locally.
  • You can save the videos in order to watch them offline.
  • If all you want is to hear the audio, you can download the MP3!

[h=3]Which version should I choose?[/h]

  • If you want to view the video on your PC, Xbox or Media Center, download the High Quality WMV file (this is the highest quality version we have available).
  • If you'd like a lower bitrate version, to reduce the download time or cost, then choose the Medium Quality WMV file.
  • If you have a Zune, Windows Phone, iPhone, iPad, or iPod device, choose the low or medium MP4 file.
  • If you just want to hear the audio of the video, choose the MP3 file.

Right click “Save as…”

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 3 of 3 episodes on memory usage/leaks. Example xPerf scripts.

Resources:

Aaron Margosis VirtMemTest

Timeline:

[00:00] - 50th Episode of Defrag Tools!

[01:20] - Attach: xperf -start HeapSession -heap -pids %1 -stackwalk ...

[03:28] - VirtMemTest

[04:54] - WPA

[06:22] - Type - Allocated Inside (AI) & Outside (AO), Freed Inside (FI) & Outside (FO)

[07:20] - Launch: Image File Execution Options

[07:51] - Launch: xperf -start HeapSession -heap -pids 0 -stackwalk ...

[08:40] - Registry Editor - IFEO

[10:26] - WPA

[11:06] - Type - Allocated Inside (AI) & Outside (AO), Freed Inside (FI) & Outside (FO)

[11:25] - Summary - AIFO

Example: "xperf - Collect Heap_Attach.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

xperf -start HeapSession -heap -pids %1 -stackwalk HeapAlloc+HeapRealloc -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 -stop HeapSession -d heap.etl

Example: "xperf - Collect Heap_Launch.cmd"

@echo off

echo Press a key when ready to start...

pause

echo .

echo ...Capturing...

echo .

rem Add the process to IFEO

reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\%1.exe" /v TracingFlags /t REG_DWORD /d 1 /f

xperf -on PROC_THREAD+LOADER+VIRT_ALLOC -BufferSize 1024 -MinBuffers 256 -MaxBuffers 256 -stackwalk VirtualAlloc

xperf -start HeapSession -heap -pids 0 -stackwalk HeapAlloc+HeapRealloc -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 HeapSession -stop -d heap.etl

rem Remove the process from IFEO

reg delete "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\%1.exe" /v TracingFlags /f

Sursa: Defrag Tools: #50 - WPT - Memory Analysis - Heap | Defrag Tools | Channel 9

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...