Closed
Bug 718025
Opened 13 years ago
Closed 12 years ago
Add support for stacktraces on Windows to the built-in profiler
Categories
(Core :: General, defect)
Tracking
()
RESOLVED
FIXED
mozilla12
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
References
Details
Attachments
(1 file, 2 obsolete files)
4.83 KB,
patch
|
Details | Diff | Splinter Review |
I have a patch which enables us to walk the stack on Windows. The symbolication part is missing, so it's not quite useful yet, but stepping through the code, things seem to be working fine.
Assignee | ||
Comment 1•13 years ago
|
||
Comment 2•12 years ago
|
||
Comment on attachment 588491 [details] [diff] [review] Patch (v1) Review of attachment 588491 [details] [diff] [review]: ----------------------------------------------------------------- ::: tools/profiler/sps/TableTicker.cpp @@ +361,5 @@ > } > #endif > > +#ifdef USE_NS_STACKWALK > +typedef nsTArray<void*> PCArray; I don't think you can safely use an nsTArray when a thread is paused. nsTArray will do mallocs which will deadlock if the stopped thread is inside malloc. ::: tools/profiler/sps/platform.h @@ +204,5 @@ > PlatformData* platform_data() { return data_; } > > +#ifdef XP_WIN > + // xxxehsan sucky hack :( > + static uintptr_t GetThreadHandle(PlatformData*); gross
Attachment #588491 -
Flags: review?(jmuizelaar) → review-
Assignee | ||
Comment 3•12 years ago
|
||
Good catch. I wonder why I didn't get hangs while testing. :/
Attachment #588491 -
Attachment is obsolete: true
Attachment #588984 -
Flags: review?(jmuizelaar)
Updated•12 years ago
|
Attachment #588984 -
Flags: review?(jmuizelaar) → review+
Assignee | ||
Comment 4•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/2273e0264d4a
Target Milestone: --- → mozilla12
Comment 5•12 years ago
|
||
Backed you out in https://hg.mozilla.org/integration/mozilla-inbound/rev/e40e72d6264d since I was pretty sure you'd rather have Windows continue to build ;)
Assignee | ||
Comment 6•12 years ago
|
||
Ouch... Some day I will learn how to program. Until that day comes, here's a link to the log for reference: https://tbpl.mozilla.org/php/getParsedLog.php?id=8595118&tree=Mozilla-Inbound
Assignee | ||
Comment 7•12 years ago
|
||
Attachment #588984 -
Attachment is obsolete: true
Assignee | ||
Comment 8•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/419f8a0f6374
Comment 9•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/419f8a0f6374
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•