Skip to content

Commit

Permalink
Make VirtualFreeStacks.py more helpful
Browse files Browse the repository at this point in the history
  • Loading branch information
randomascii committed May 24, 2021
1 parent 04d4ed1 commit e10e0e7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bin/VirtualFreeStacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@

from __future__ import print_function

import os
import sys
import re

Expand All @@ -42,6 +43,12 @@ def main():
print('Required argument missing.')
print('Usage:')
print(' %s <tracesummary.csv>' % sys.argv[0])
print('tracesummary.csv should be created beforehand like this:')
print('xperf -i trace.etl -symbols -target machine -o tracesummary.csv -a dumper')
return 0

if os.path.splitext(sys.argv[1])[1].lower() == '.etl':
print('Argument should be a .csv file, not a .etl file.')
return 0

total = 0
Expand Down

0 comments on commit e10e0e7

Please sign in to comment.