Closed
Bug 1373900
Opened 9 years ago
Closed 9 years ago
Factor ThreadHangStats classes out of Telemetry.cpp
Categories
(Toolkit :: Telemetry, enhancement, P3)
Toolkit
Telemetry
Tracking
()
RESOLVED
FIXED
mozilla56
| Tracking | Status | |
|---|---|---|
| firefox56 | --- | fixed |
People
(Reporter: yarik.sheptykin, Assigned: yarik.sheptykin, Mentored)
References
Details
Attachments
(1 file)
Definition of the TimeHistogram, HangStack and HangHistogram, is in [ThreadHangStats](https://dxr.mozilla.org/mozilla-central/source/toolkit/components/telemetry/ThreadHangStats.h) but the implementations of these classes live in [Telemetry.cpp](https://dxr.mozilla.org/mozilla-central/source/toolkit/components/telemetry/Telemetry.cpp#2603-2674). We should refactor the implementation into a standalone file.
| Assignee | ||
Updated•9 years ago
|
Assignee: nobody → yarik.sheptykin
Updated•9 years ago
|
Priority: -- → P3
| Assignee | ||
Comment 1•9 years ago
|
||
:gfritzsche, waiting here for Bug 1371900 to land, otherwise we will get unnecessary conflicts while re-basing.
Flags: needinfo?(gfritzsche)
| Comment hidden (mozreview-request) |
| Assignee | ||
Comment 3•9 years ago
|
||
Thanks for landing Bug 1371900, Georg! Here is the fist working patch for refactoring ThreadHangStats out.
Comment 4•9 years ago
|
||
Comment on attachment 8880341 [details]
Bug 1373900: Factor ThreadHangStats implementation out of Telemetry.cpp.
Chris, do you have some time to look over this?
Flags: needinfo?(gfritzsche)
Attachment #8880341 -
Flags: review?(gfritzsche) → review?(chutten)
Comment 5•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8880341 [details]
Bug 1373900: Factor ThreadHangStats implementation out of Telemetry.cpp.
https://reviewboard.mozilla.org/r/151706/#review156726
Looks good otherwise. How's our test coverage of these functions?
::: toolkit/components/telemetry/ThreadHangStats.cpp:15
(Diff revision 1)
> +#include "jsapi.h"
> +
> +namespace {
> +
> +using namespace mozilla;
> +using namespace HangMonitor;
Should be mozilla::HangMonitor
::: toolkit/components/telemetry/ThreadHangStats.cpp:16
(Diff revision 1)
> +
> +namespace {
> +
> +using namespace mozilla;
> +using namespace HangMonitor;
> +using namespace Telemetry;
Should be mozilla::Telemetry
Attachment #8880341 -
Flags: review?(chutten) → review-
| Comment hidden (mozreview-request) |
| Assignee | ||
Comment 7•9 years ago
|
||
Thanks for taking a look Chris! cpp parts don't have unit tests. But there is some [JS coverage](https://dxr.mozilla.org/mozilla-central/source/toolkit/components/telemetry/tests/unit/test_ThreadHangStats.js) for thread hang stats.
Flags: needinfo?(chutten)
Comment 8•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8880341 [details]
Bug 1373900: Factor ThreadHangStats implementation out of Telemetry.cpp.
https://reviewboard.mozilla.org/r/151706/#review156744
Attachment #8880341 -
Flags: review?(chutten) → review+
Updated•9 years ago
|
Flags: needinfo?(chutten)
| Assignee | ||
Comment 9•9 years ago
|
||
Hi guys! I reviewed failed tests for the patch (https://treeherder.mozilla.org/#/jobs?repo=try&revision=97476bbb1bc6) and to me they seem unrelated. I am therefore adding a [checkin-needed] here.
| Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 10•9 years ago
|
||
Pushed by cbook@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a86be309d9f4
Factor ThreadHangStats implementation out of Telemetry.cpp. r=chutten
Keywords: checkin-needed
Comment 11•9 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in
before you can comment on or make changes to this bug.
Description
•