How to collect long-time method traces by 'am profile'?

by Shuo » Sat, 17 Jul 2010 02:27:06 GMT

Sponsored Links
 I am using the 'am profile <PROCESS> start|stop' to get method traces.
What I did is:

# am profile <PROCESS> start /sdcard/trace

wait for 10min, playing with the app from which I am collecting traces

# am profile <PROCESS> stop

But in the trace file there is only records for 3 seconds. Do you know
how can I collect traces for long-time?



Other Threads

1. WebView - new frame closes my app and starts system web browser?

Hi Mark,

Yeah the setSupportMultipleWindows() call has no effect. I tried this:

  mWebView.setWebViewClient(new WebViewClient() {
    public boolean shouldOverrideUrlLoading(WebView view, String url)
      return true;
    public void onPageStarted(WebView view, String url, Bitmap
favicon) {
      Log.d("@@@", "start loading page....");
    public void onPageFinished(WebView view, String url) {
      Log.d("@@@", "finish loading page....");

in an attempt to force any url loading to happen within the same
webview instance. It seems to work, but it seems odd to have to do
this, I thought this would be more like the default behavior of

The onPageFinished() override is called, the onPageStarted override is
not, which is also confusing,



2. Accessing the toast queue? is it possible


I would like to know when a toast has been shown on the screen, for
instance when i fire away 4 toasts i want to know when for instance
toast #3 has been shown. First I thought i just would register a
listener to a toast, but to my knowledge this isnt possible :-/

So im wondering if its is possible for me to access the toast enqueue
by myself? and to check wheter my toast is in there..

Best Regards


3. Geolocation in Browser

4. Interrupt Progress Dialog

5. listening on TCP sockets in android emulator problem

6. How can I receive cell location updates?

7. Is there any Intent to pick file for attachment?