Closed
Bug 841527
Opened 12 years ago
Closed 12 years ago
Update the FX_IDENTITY_POPUP_OPEN_MS telemetry probe to use the TelemetryStopwatch
Categories
(Firefox :: General, defect)
Firefox
General
Tracking
()
RESOLVED
FIXED
Firefox 22
People
(Reporter: jaws, Assigned: Cykesiopka)
Details
(Whiteboard: [good first bug][mentor=jaws][lang=js])
Attachments
(1 file, 3 obsolete files)
2.79 KB,
patch
|
Details | Diff | Splinter Review |
Using TelemetryStopwatch will reduce code duplication that the FX_IDENTITY_POPUP_OPEN_MS probe handles itself.
See http://mxr.mozilla.org/mozilla-central/ident?i=TelemetryStopwatch for usages of TelemetryStopwatch.
There may be other probes that can be converted. I'll add them to this bug if I find them before the bug is closed.
![]() |
Assignee | |
Comment 1•12 years ago
|
||
Hmm, something like this...?
Attachment #715921 -
Flags: review?(jAwS)
Reporter | ||
Comment 2•12 years ago
|
||
Comment on attachment 715921 [details] [diff] [review]
Initial patch
Review of attachment 715921 [details] [diff] [review]:
-----------------------------------------------------------------
This patch looks really good. I think it is very close to being fixed. Please make the one change below and request review from :felipe on the next patch.
::: browser/base/content/browser.js
@@ +7141,5 @@
> },
>
> onPopupShown : function(event) {
> + if (!TelemetryStopwatch.finish("FX_IDENTITY_POPUP_OPEN_MS")) {
> + Components.utils.reportError("Unable to report telemetry for FX_IDENTITY_POPUP_OPEN_MS.");
I think we can remove the Component.utils.reportError call now and just make the TelemetryStopwatch.finish call outside of an if-statement.
Attachment #715921 -
Flags: review?(jAwS) → feedback+
Reporter | ||
Updated•12 years ago
|
Assignee: nobody → cykesiopka
Status: NEW → ASSIGNED
![]() |
Assignee | |
Comment 3•12 years ago
|
||
Addressed feedback comments.
Thanks for the feedback :jaws!
Attachment #715921 -
Attachment is obsolete: true
Attachment #716244 -
Flags: review?(felipc)
Comment 4•12 years ago
|
||
Comment on attachment 716244 [details] [diff] [review]
Patch v1
Review of attachment 716244 [details] [diff] [review]:
-----------------------------------------------------------------
Hi there, thanks for the patch! There's just one thing that needs to be addressed before it's ready. With TelemetryStopwatch you can't have a timer that is started but never finishes. If that happens, the next time the timer is started again it will give an error. You have two alternatives to fix that:
- You can move the start of the timer after the return statements that might stop that function, or
- You can call TelemetryStopwatch.cancel(..) before the return statements to cancel that timer and allow a new one to be started later
Attachment #716244 -
Flags: review?(felipc) → feedback+
![]() |
Assignee | |
Comment 5•12 years ago
|
||
Addressed Felipe's comments.
Thanks for the feedback!
Attachment #716244 -
Attachment is obsolete: true
Attachment #716769 -
Flags: review?(felipc)
Comment 6•12 years ago
|
||
Comment on attachment 716769 [details] [diff] [review]
Patch v2
Review of attachment 716769 [details] [diff] [review]:
-----------------------------------------------------------------
Great!
Attachment #716769 -
Flags: review?(felipc) → review+
![]() |
Assignee | |
Comment 7•12 years ago
|
||
Not sure if I need to post an updated patch for check in when I'm just changing the commit message, but just in case...
Attachment #716769 -
Attachment is obsolete: true
![]() |
Assignee | |
Updated•12 years ago
|
Keywords: checkin-needed
Comment 8•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/b284ccd69eb7
Thanks for the patch!
Keywords: checkin-needed
Reporter | ||
Updated•12 years ago
|
Keywords: checkin-needed
Reporter | ||
Updated•12 years ago
|
Keywords: checkin-needed
Comment 9•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 22
You need to log in
before you can comment on or make changes to this bug.
Description
•