Closed
Bug 872244
Opened 13 years ago
Closed 13 years ago
Collect /data/anr/traces.txt after Android test runs
Categories
(Testing :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla24
People
(Reporter: gbrown, Assigned: gbrown)
References
Details
Attachments
(1 file, 1 obsolete file)
|
3.72 KB,
patch
|
jmaher
:
review+
|
Details | Diff | Splinter Review |
Sometimes logcat shows something like:
I/dalvikvm( 4345): Wrote stack traces to '/data/anr/traces.txt'
and we wonder "What is in those stack traces?"
Let's pull that file, dump it, and delete it.
| Assignee | ||
Comment 1•13 years ago
|
||
This hangs off of checkForCrashes for convenience.
After a test run, at the start of checkForCrashes, this checks for /data/anr/traces.txt. If found, the file is pulled, displayed, and then deleted from the remote device. The first time this runs on a device, we will often see a large file dumped, with traces from some time(s) in the past. The file will be deleted and then subsequent runs will typically only report ANRs reported during that test. Note that ANR entries in traces.txt have a date and time -- easy to differentiate old from new.
Try run here shows this in action on tegras and pandas: https://tbpl.mozilla.org/?tree=Try&rev=c79b3d6497a9
Attachment #749506 -
Flags: review?(jmaher)
Comment 2•13 years ago
|
||
Comment on attachment 749506 [details] [diff] [review]
dump /data/anr/traces.txt
Review of attachment 749506 [details] [diff] [review]:
-----------------------------------------------------------------
I would like to delete the traces before we start the test, otherwise this looks fine.
Attachment #749506 -
Flags: review?(jmaher) → review-
| Assignee | ||
Comment 3•13 years ago
|
||
As before, but now the traces.txt file is deleted before starting any mochitest or reftest.
Attachment #749506 -
Attachment is obsolete: true
Attachment #750609 -
Flags: review?(jmaher)
Comment 4•13 years ago
|
||
Comment on attachment 750609 [details] [diff] [review]
dump /data/anr/traces.txt
Review of attachment 750609 [details] [diff] [review]:
-----------------------------------------------------------------
thanks!
Attachment #750609 -
Flags: review?(jmaher) → review+
| Assignee | ||
Comment 5•13 years ago
|
||
Comment 6•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla24
You need to log in
before you can comment on or make changes to this bug.
Description
•