java - Android Methods calling tracking -
i halfway of changing code print log message each time enter , exit method. when thought there feature or plugin eclipse can track me , show me. after all, information java compiler has @ hand.
what need see order in each method called , returns.
it should print method name , stack above it, can know called.
optionally, if prints time of enter , return , difference, info profiling.
i remember trying traceview in past, don't know if answr, remember there information there , not clear picture of going on.
if knows how use info need, great too.
update:
having hard time using traceview , companion dmtracedump. did wasn't supposed do, searched dmtracedump code source , it.
code producing error message getting.
tracedata data1; datakeys* datakeys = parsedatakeys(&data1, goptions.tracefilename, &sumthreadtime); if (datakeys == null) { fprintf(stderr, "cannot read trace.\n"); exit(1); } but don't know how fix trace file.
generated debug.startmethodtracing("tracefile");
i wish there way tell java compiler print each method call. quite frustrated @ point.
i suggest rather implementing own profiling service, use the absolutely excellent tool traceview google provides with!
if having issues using traceview, can profile parts of code using:
// start tracing "/sdcard/calc.trace" debug.startmethodtracing("calc"); // ... // stop tracing debug.stopmethodtracing(); i've used myself, , tells you'd need know profiling.
Comments
Post a Comment