X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=scripts%2Fconvert.py;h=3dacd72c8698fdd35d32c9f3e5a8662bc72852ba;hb=5c101c9efbb0f7ef0aae37a43f746e1466c669ee;hp=e98f6d5eb359ebd675c5ed665e2ed96167a1b0b7;hpb=8b9f78ba244ee2b4667d0c87a28f959b78d6e5f3;p=apitrace diff --git a/scripts/convert.py b/scripts/convert.py index e98f6d5..3dacd72 100755 --- a/scripts/convert.py +++ b/scripts/convert.py @@ -60,7 +60,7 @@ def callProcess(cmd): def convertToPix(inTrace, outPixrun): - pix = getPixPath() + pix = getPixExe() pixExp = os.path.join(os.path.dirname(__file__), 'apitrace.PIXExp') @@ -90,10 +90,11 @@ def convertFromPix(inPix, outTrace): pixExe = getPixExe() if False: + # TODO: Use -exporttocsv option to detect which API to use cmd = [ pixExe, inPix, - '-exporttocsv', 'c:\test.csv', + '-exporttocsv', # XXX: output filename is ignored ] callProcess(cmd) @@ -127,7 +128,7 @@ def main(): optparser.add_option( '--apitrace', metavar='PROGRAM', type='string', dest='apitrace', default='apitrace.exe', - help='retrace command [default: %default]') + help='path to apitrace command [default: %default]') optparser.add_option( '-a', '--api', metavar='API', type='string', dest='api', default='d3d9', @@ -135,7 +136,7 @@ def main(): optparser.add_option( '-r', '--retrace', metavar='PROGRAM', type='string', dest='retrace', default='d3dretrace.exe', - help='retrace command [default: %default]') + help='path to retrace command [default: %default]') optparser.add_option( '-v', '--verbose', action='store_true', dest='verbose', default=False,