Thursday, January 20, 2011

traceview fails to find the trace file (on windows)

You have the trace file 'my-trace.trace' present in the current working directory. However, when you type traceview my-trace, you would get the error message: "trace file 'my-trace' not found". Even if you append the trace file with the '.trace' extension, you would get the same error message.
Somehow, the traceview cannot recognize relative paths. So, the solution is to pass the absolute path of the trace file as input to the traceview.
EG: traceview C:\path\to\file\my-trace

(PS: It's been assumed here that the android-tools folder is in your PATH env-variable.)

No comments:

Post a Comment