Closed Bug 731004 Opened 12 years ago Closed 12 years ago

Telemetry on time to service idle callbacks

Categories

(Core :: Widget, defect)

x86
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla13

People

(Reporter: taras.mozilla, Assigned: froydnj)

Details

(Whiteboard: [telemetry-needed])

Attachments

(1 file, 1 obsolete file)

There have been quite a few bugs file on browser being locked up after idle. Lets figure out whether this is still a problem and whether it's caused by blocking idle observers or sql contention.
We need telemetry on:
* time taken by TryNotifyBackState would be a start.
* how many idle reporters are notified at a time.
I will poke at this sometime this week.
Assignee: nobody → nfroyd
Status: NEW → ASSIGNED
Attached patch patch to add telemetry (obsolete) — Splinter Review
Although the bug is only for returning telemetry, getting telemetry on idle notifications seemed useful too.
Attachment #601266 - Flags: review?(roc)
Keywords: checkin-needed
This doesn't apply cleanly to mozilla-inbound. Please resubmit.
Clearing checkin-needed; I will resubmit later.
Keywords: checkin-needed
I realize I got r+ on the last patch, but nsIdleService changed out from under me sufficiently that r?'ing again is worthwhile, I think.

Specifically, WDYT about the placement of the IDLE_NOTIFY_IDLE_MS timer in IdleTimerCallback?  I think it's in the right place; we don't want it much farther before or we'd count time in ResetIdleTimeOut (i.e. IDLE_NOTIFY_BACK_MS).  But I'm not familiar with the code, so I'd like a second opinion.
Attachment #601266 - Attachment is obsolete: true
Attachment #601709 - Flags: review?(roc)
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/592a7bce652a
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla13
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: