Closed
Bug 970358
Opened 12 years ago
Closed 12 years ago
Disable BackgroundHangMonitor on release/beta
Categories
(Core :: XPCOM, defect)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla30
People
(Reporter: jchen, Assigned: jchen)
References
Details
(Whiteboard: [qa-])
Attachments
(1 file, 1 obsolete file)
|
5.58 KB,
patch
|
jchen
:
review+
Sylvestre
:
approval-mozilla-aurora+
Sylvestre
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
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.
Comment 1•12 years ago
|
||
This affects 28 and up (from bug 909974) right?
status-firefox27:
--- → unaffected
status-firefox28:
--- → affected
status-firefox29:
--- → affected
status-firefox30:
--- → affected
tracking-firefox28:
--- → ?
tracking-firefox29:
--- → ?
tracking-firefox30:
--- → ?
Comment 2•12 years ago
|
||
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
| Assignee | ||
Comment 3•12 years ago
|
||
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 4•12 years ago
|
||
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+
| Assignee | ||
Comment 5•12 years ago
|
||
(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+
| Assignee | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 6•12 years ago
|
||
Keywords: checkin-needed
Comment 7•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla30
| Assignee | ||
Comment 8•12 years ago
|
||
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?
Updated•12 years ago
|
Attachment #8374607 -
Flags: approval-mozilla-beta?
Attachment #8374607 -
Flags: approval-mozilla-beta+
Attachment #8374607 -
Flags: approval-mozilla-aurora?
Attachment #8374607 -
Flags: approval-mozilla-aurora+
Updated•12 years ago
|
Comment 9•12 years ago
|
||
Updated•12 years ago
|
Comment 10•12 years ago
|
||
Updated•12 years ago
|
status-b2g-v1.3:
--- → fixed
Updated•12 years ago
|
status-b2g-v1.3T:
--- → fixed
status-b2g-v1.4:
--- → fixed
You need to log in
before you can comment on or make changes to this bug.
Description
•