Closed Bug 970358 Opened 12 years ago Closed 12 years ago

Disable BackgroundHangMonitor on release/beta

Categories

(Core :: XPCOM, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla30
Tracking Status
firefox27 --- unaffected
firefox28 + fixed
firefox29 + fixed
firefox30 + fixed
b2g-v1.3 --- fixed
b2g-v1.3T --- fixed
b2g-v1.4 --- fixed

People

(Reporter: jchen, Assigned: jchen)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file, 1 obsolete file)

For now, we should be getting enough data from Nightly/Aurora channels, and the hang monitor has non-trivial power consumption in certain idle cases, so it makes sense to disable it on Release and Beta.
This affects 28 and up (from bug 909974) right?
Looks like you could try RELEASE_BUILD defines on this so we don't have to track & disable manually every release -- see https://wiki.mozilla.org/Platform/Channel-specific_build_defines
This patch disables BHM when RELEASE_BUILD is defined (for release/beta). Feel free to suggest other names for the macro :) It was easier to put ifdef in Telemetry.cpp than to isolate ThreadHangStatsIterator, so I just changed Telemetry.cpp. I only see Telemetry ever using ThreadHangStatsIterator, so I think this is okay.
Attachment #8373657 - Flags: review?(nfroyd)
Comment on attachment 8373657 [details] [diff] [review] Disable BackgroundHangMonitor on release builds (v1) Review of attachment 8373657 [details] [diff] [review]: ----------------------------------------------------------------- r=me with the change(s) below. ::: xpcom/threads/BackgroundHangMonitor.h @@ +18,5 @@ > }; > > +#ifdef RELEASE_BUILD > +#define MOZ_DISABLE_BACKGROUND_HANG_MONITOR > +#endif Please invert this: #ifndef RELEASE_BUILD #define MOZ_ENABLE_BACKGROUND_HANG_MONITOR #endif and change all the other conditionals correspondingly.
Attachment #8373657 - Flags: review?(nfroyd) → review+
(In reply to Nathan Froyd (:froydnj) from comment #4) > Comment on attachment 8373657 [details] [diff] [review] > Disable BackgroundHangMonitor on release builds (v1) > > ::: xpcom/threads/BackgroundHangMonitor.h > @@ +18,5 @@ > > }; > > > > +#ifdef RELEASE_BUILD > > +#define MOZ_DISABLE_BACKGROUND_HANG_MONITOR > > +#endif > > Please invert this: > > #ifndef RELEASE_BUILD > #define MOZ_ENABLE_BACKGROUND_HANG_MONITOR > #endif > > and change all the other conditionals correspondingly. Okay, done
Attachment #8373657 - Attachment is obsolete: true
Attachment #8374607 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
Comment on attachment 8374607 [details] [diff] [review] Disable BackgroundHangMonitor on release builds (v1.1) [Approval Request Comment] Bug caused by (feature/regressing bug #): Bug 909974 User impact if declined: Higher power consumption in certain idle cases when using beta/release builds Testing completed (on m-c, etc.): Locally; m-c Risk to taking this patch (and alternatives if risky): None; patch simply disables background hang reporting String or IDL/UUID changes made by this patch: None
Attachment #8374607 - Flags: approval-mozilla-beta?
Attachment #8374607 - Flags: approval-mozilla-aurora?
Attachment #8374607 - Flags: approval-mozilla-beta?
Attachment #8374607 - Flags: approval-mozilla-beta+
Attachment #8374607 - Flags: approval-mozilla-aurora?
Attachment #8374607 - Flags: approval-mozilla-aurora+
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: