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. Programmatically get resource information

I have a SQLite database and one of the tables has a column that is
the string name of a jpeg file..

For instance the column is called "PhotoID" and a record value is say
I have strored all the actual jpegs in the drawable resouce directory.

I would like to be able to programmatically access the resources with
having to prep or setup the link.  I have about 100 photos but do want
to setup a link to the actual resource id.

For instance the R class has the following setting

 public static final int david_beckham=0x7f020011;

I have created a record in my DB as follows;

"INSERT INTO Celebrity_Trump_Raw_Data (Rank, CelebrityName, PayMil,
WebRank, PressRank, TVRank, PhotoId) VALUES ('5',  '  David Beckham',
50, '10', '3', '18', 'David_Beckham.jpg');",

I would like to do something like this:

int curr_pic_res = R.drawable.(String.tolower(Celeb.PhotoID));

Is this possible or do I have to create the resource links manaully.


2. Margin-problem with changed layout for titlebar

Where do the icons next the title string come from? I don't see them in your
layout, so there must be something you're doing outside of the posted code
and layout that is causing the problem.
And why on earth are you trying to make your app's title bar look like
Windows 3.1? ;)


3. How do I remove the default frame around each picture in Gallery?

4. Resize based on orientation.

5. Some bugs of WebView

6. # special characters in webview

7. Has anyone succeeded in displaying non latin-1 characters in Webview after RC33?