Closed
Bug 951435
Opened 9 years ago
Closed 9 years ago
Show thread hang stats in about:telemetry
Categories
(Toolkit :: Telemetry, defect)
Toolkit
Telemetry
Tracking
()
RESOLVED
FIXED
mozilla29
People
(Reporter: jchen, Assigned: jchen)
Details
Attachments
(2 files, 2 obsolete files)
4.54 KB,
patch
|
jchen
:
review+
|
Details | Diff | Splinter Review |
5.88 KB,
patch
|
vladan
:
review+
|
Details | Diff | Splinter Review |
Thread hang stats have been turned on since 28, and about:telemetry should show these data.
Assignee | ||
Comment 1•9 years ago
|
||
Thread activity histograms are best visualized in a log plot. This patch adds an exponential option when rendering histograms.
Attachment #8356761 -
Flags: review?(vdjeric)
Assignee | ||
Comment 2•9 years ago
|
||
This patch adds a section in about:telemetry to display data from nsITelemetry::threadHangStats (http://mxr.mozilla.org/mozilla-central/source/toolkit/components/telemetry/nsITelemetry.idl#102)
Attachment #8356762 -
Flags: review?(vdjeric)
Comment 3•9 years ago
|
||
Comment on attachment 8356761 [details] [diff] [review] Add exponential option to histogram bar graph (v1) Review of attachment 8356761 [details] [diff] [review]: ----------------------------------------------------------------- ::: toolkit/content/aboutTelemetry.js @@ +534,5 @@ > * > * @param aDiv Outer parent div > * @param aValues Histogram values > * @param aMaxValue Value of the longest bar (length, not label) > * @param aSumValues Sum of all bar values * @param aOptions ...
Attachment #8356761 -
Flags: review?(vdjeric) → review+
Comment 4•9 years ago
|
||
Comment on attachment 8356762 [details] [diff] [review] Add thread hang stats to about:telemetry (v1) Review of attachment 8356762 [details] [diff] [review]: ----------------------------------------------------------------- ::: toolkit/content/aboutTelemetry.js @@ +433,5 @@ > + > + /** > + * Creates and fills data corresponding to a thread > + */ > + renderThread: function(thread) { aThread @@ +443,5 @@ > + > + Histogram.render(div, thread.name + "/" + this.threadActivityCaption, > + thread.activity, {exponential: true}); > + thread.hangs.forEach((hang) => { > + Histogram.render(div, hang.stack.join("/"), hang.histogram, {exponential: true}); The histogram's name is all the hang stack frames concatenated together? So the overflow just gets clipped by the histogram border? Why not put the hang stack in a separate div below the histogram?
Attachment #8356762 -
Flags: review?(vdjeric)
Updated•9 years ago
|
Flags: needinfo?(nchen)
Assignee | ||
Comment 5•9 years ago
|
||
(In reply to Vladan Djeric (:vladan) from comment #3) > Comment on attachment 8356761 [details] [diff] [review] > Add exponential option to histogram bar graph (v1) > > Review of attachment 8356761 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: toolkit/content/aboutTelemetry.js > @@ +534,5 @@ > > * > > * @param aDiv Outer parent div > > * @param aValues Histogram values > > * @param aMaxValue Value of the longest bar (length, not label) > > * @param aSumValues Sum of all bar values > > * @param aOptions ... Added.
Attachment #8356761 -
Attachment is obsolete: true
Attachment #8358424 -
Flags: review+
Assignee | ||
Comment 6•9 years ago
|
||
(In reply to Vladan Djeric (:vladan) from comment #4) > Comment on attachment 8356762 [details] [diff] [review] > Add thread hang stats to about:telemetry (v1) > > Review of attachment 8356762 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: toolkit/content/aboutTelemetry.js > @@ +433,5 @@ > > + > > + /** > > + * Creates and fills data corresponding to a thread > > + */ > > + renderThread: function(thread) { > > aThread Changed. > @@ +443,5 @@ > > + > > + Histogram.render(div, thread.name + "/" + this.threadActivityCaption, > > + thread.activity, {exponential: true}); > > + thread.hangs.forEach((hang) => { > > + Histogram.render(div, hang.stack.join("/"), hang.histogram, {exponential: true}); > > The histogram's name is all the hang stack frames concatenated together? So > the overflow just gets clipped by the histogram border? Why not put the hang > stack in a separate div below the histogram? Changed the patch to add a stack div below the histogram title, inside the histogram div (everything is inside the histogram div to keep layout correct).
Attachment #8356762 -
Attachment is obsolete: true
Attachment #8358426 -
Flags: review?(vdjeric)
Assignee | ||
Updated•9 years ago
|
Flags: needinfo?(nchen)
Updated•9 years ago
|
Attachment #8358426 -
Flags: review?(vdjeric) → review+
Assignee | ||
Comment 7•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/e6d0f23b23c4 https://hg.mozilla.org/integration/mozilla-inbound/rev/4d6ce0f21d10
Comment 8•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/e6d0f23b23c4 https://hg.mozilla.org/mozilla-central/rev/4d6ce0f21d10
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla29
You need to log in
before you can comment on or make changes to this bug.
Description
•