Closed Bug 1373900 Opened 9 years ago Closed 9 years ago

Factor ThreadHangStats classes out of Telemetry.cpp

Categories

(Toolkit :: Telemetry, enhancement, P3)

enhancement

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: nobody → yarik.sheptykin
Priority: -- → P3
:gfritzsche, waiting here for Bug 1371900 to land, otherwise we will get unnecessary conflicts while re-basing.
Flags: needinfo?(gfritzsche)
Depends on: 1371900
Thanks for landing Bug 1371900, Georg! Here is the fist working patch for refactoring ThreadHangStats out.
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 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-
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 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+
Flags: needinfo?(chutten)
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.
Keywords: checkin-needed
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
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: