Closed
Bug 756142
Opened 12 years ago
Closed 11 years ago
Report shutdown times via telemetry
Categories
(Toolkit :: Telemetry, defect)
Toolkit
Telemetry
Tracking
()
RESOLVED
FIXED
mozilla17
People
(Reporter: espindola, Assigned: froydnj)
References
Details
Attachments
(4 files)
2.51 KB,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
3.95 KB,
patch
|
taras.mozilla
:
review-
|
Details | Diff | Splinter Review |
1.10 KB,
patch
|
taras.mozilla
:
review+
|
Details | Diff | Splinter Review |
4.01 KB,
patch
|
benjamin
:
review+
|
Details | Diff | Splinter Review |
No description provided.
![]() |
Assignee | |
Updated•11 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
![]() |
Assignee | |
Comment 1•11 years ago
|
||
I'm choosing to expose the shutdown data through nsIAppStartup instead of groveling in the file directly in Telemetry. This way we only need knowledge about the filename is one place, rather than widely separated places. It does have the downside of being somewhat more complicated. Feel free to r- and tell me to do it the dirt-simple way if you don't like the complexity. The current way the shutdown filename is generated is only suitable for shutdown times; for exposing this data through telemetry, we need it to stick around longer. Make that possible first.
Attachment #640619 -
Flags: review?(benjamin)
![]() |
Assignee | |
Comment 2•11 years ago
|
||
The caching is in case we request the time after the next shutdown timestamp has been written. Don't know if it's possible for Telemetry to do that, but figured I'd better play it safe.
Attachment #640620 -
Flags: review?(benjamin)
![]() |
Assignee | |
Comment 3•11 years ago
|
||
Now that all of the complicated stuff is out of the way, sending the bits is pretty simple.
Attachment #640621 -
Flags: review?(taras.mozilla)
Comment 4•11 years ago
|
||
Comment on attachment 640620 [details] [diff] [review] part 2 - expose shutdown duration through nsIAppStartup I think it'd be better if this returns null on failure. Exposing throwy APIs is a recipe for someone to forget an exception handler
Attachment #640620 -
Flags: review-
Comment 5•11 years ago
|
||
Comment on attachment 640621 [details] [diff] [review] part 3 - send the shutdown duration Take out the try/catch. turn it into if(si.lastShutdownDurection)... r+ with that...Alternatively is bsmedberg prefers exceptions(I hope he does not), this is ok too.
Attachment #640621 -
Flags: review?(taras.mozilla) → review+
Updated•11 years ago
|
Attachment #640619 -
Flags: review?(benjamin) → review+
Comment 6•11 years ago
|
||
Comment on attachment 640620 [details] [diff] [review] part 2 - expose shutdown duration through nsIAppStartup Yeah, Taras is right, return 0 on failure instead of throwing (and add that to the IDL docs).
Attachment #640620 -
Flags: review?(benjamin)
![]() |
Assignee | |
Comment 7•11 years ago
|
||
Non-throwing version.
Attachment #640773 -
Flags: review?(benjamin)
Comment 8•11 years ago
|
||
Comment on attachment 640773 [details] [diff] [review] part 2 - expose shutdown duration through nsIAppStartup either mLastShutdownTime needs to be "int" instead of "PRUint32" or you need to use a temporary int and then assign it. r=me with that change
Attachment #640773 -
Flags: review?(benjamin) → review+
![]() |
Assignee | |
Comment 9•11 years ago
|
||
http://hg.mozilla.org/integration/mozilla-inbound/rev/c80ee711a679 http://hg.mozilla.org/integration/mozilla-inbound/rev/a16a7d6e15f0 http://hg.mozilla.org/integration/mozilla-inbound/rev/6756d15958fe
Status: NEW → ASSIGNED
Comment 10•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/c80ee711a679 https://hg.mozilla.org/mozilla-central/rev/a16a7d6e15f0 https://hg.mozilla.org/mozilla-central/rev/6756d15958fe
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla17
You need to log in
before you can comment on or make changes to this bug.
Description
•