Skip to content

Instantly share code, notes, and snippets.

@fredemmott
Last active June 11, 2025 01:51
Show Gist options
  • Select an option

  • Save fredemmott/f341b1f78a550ac2cc5aab265d969647 to your computer and use it in GitHub Desktop.

Select an option

Save fredemmott/f341b1f78a550ac2cc5aab265d969647 to your computer and use it in GitHub Desktop.
wpr -snapshotconfig heap -name OpenKneeboardApp.exe enable
# your own wprp is optional, both are logged
wpr -start heapsnapshot -start .\OpenKneeboard.wprp -filemode
wpr -singlesnapshot heap $((get-process OpenKneeboardApp).id)
# Wait for leak, then the same again
wpr -singlesnapshot heap $((get-process OpenKneeboardApp).id)
wpr -stop c:\users\fred\trace.etl
wpr -snapshotconfig heap -name OpenKneeboardApp.exe disable
# in wpa, select both snapshots, right click, diff view. Then look at 'added'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment