I'm trying to figure out an easy way that I can generate multiple trace files that are precisely similar in the following ways:
android.os.Debug.startMethodTracing is called at the same time (before or at my activity's onCreate)
likewise, stopMethodTracing is called at onDestroy.
The time between startMethodTracing/OnCreate - stopMethodTracing/onDestroy should be precisely the same as well (between different runs).
Ideally, I'd like to do this inside an instrumented test case, but it's not apparent to me how to extend the life of the activity associated with the test case (Ie, I'd like the tracing to last, say, at least five seconds).
Is there any easy way to do something like this?
Thanks
Aucun commentaire:
Enregistrer un commentaire