instruments command line didn't work for displayed surface

Hi,


I could use 'Metal System Trace' profiling template from Instruments GUI tool, but I failed to do that by using the command line.


The command line is:

instruments -t "Metal System Trace" -D ~/output_trace -l 5000 -w 15fc1658a0cac4006a4b77e47231a0c21f1db5c7  -p com.apple.AppStore -v


Its output is:

instruments[9119]: Loading template 'file:///Applications/Xcode.app/Contents/Applications/Instruments.app/Contents/Packages/GPU.instrdst/Contents/Templates/Metal%20System%20Trace.tracetemplate'
instruments[9119]: Stopping Recording
Instruments Trace Complete: /Users/icos/output_trace.trace


But when open the trace files in the GUI tool, No data is shown for Displayed Surface.


Anything wrong with the command line? Any help is appreciated, Thanks.


Xcode Version: Version 10.0 (10A255)

Instruments Command line Version: instruments, version 10.0 (64293.19)

IPhone Version: 12.0 (16A366)

Replies

I should use the process id following the -p option.