Closed Bug 962808 Opened 11 years ago Closed 11 years ago

[Session Restore] Better telemetry for _writeState

Categories

(Firefox :: Session Restore, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 29

People

(Reporter: Yoric, Assigned: Yoric)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file, 2 obsolete files)

No description provided.
Whiteboard: [qa-]
Attached patch Telemetry for _writeState (obsolete) — Splinter Review
Assignee: nobody → dteller
Attachment #8364232 - Flags: review?(ttaubert)
Comment on attachment 8364232 [details] [diff] [review] Telemetry for _writeState Review of attachment 8364232 [details] [diff] [review]: ----------------------------------------------------------------- ::: browser/components/sessionstore/src/SessionSaver.jsm @@ +294,5 @@ > data = this._notifyObserversBeforeStateWrite(data); > > // Don't touch the file if an observer has deleted all state data. > if (!data) { > + stopWatchFinish("WRITE_STATE_LONGEST_OP_MS"); Don't we rather want to cancel here if any weird add-on decides to block sessionstore from writing data? @@ +307,5 @@ > > // Write (atomically) to a session file, using a tmp file. Once the session > // file is successfully updated, save the time stamp of the last save and > // notify the observers. > + stopWatchStart("WRITE_SERIALIZED_STATE_LONGEST_OP_MS"); I don't particularly like that name because it doesn't really convey what it's measuring. Maybe something that mentions communication? Sending it to the worker?
Attachment #8364232 - Flags: review?(ttaubert) → review+
Windows-only.
Arf, added missing |return|. For once, the unsufferable Windows file protection has found a use. https://tbpl.mozilla.org/?tree=Try&rev=34ed071dfba8
Attachment #8364384 - Attachment is obsolete: true
Attachment #8365379 - Flags: review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 29
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: