Closed Bug 1091140 Opened 10 years ago Closed 10 years ago

telemetry for time spent in sanitize.js

Categories

(Firefox :: General, defect)

defect
Not set
normal
Points:
3

Tracking

()

RESOLVED FIXED
Firefox 38
Iteration:
38.1 - 26 Jan

People

(Reporter: Gavin, Assigned: enndeakin)

References

(Blocks 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

We currently don't have any telemetry measurements for time spent clearing the various items that sanitize.js clears. This would be useful for determining which are the most pressing Forget button/Clear Recent History performance problems in the wild.

I think we could just go ahead and sprinkle some TelemetryStopwatch measurements throughout the file to get data here. Let's try to uplift that to beta, too.
Points: --- → 3
Flags: qe-verify-
Flags: firefox-backlog+
Attached patch Something like this (obsolete) — Splinter Review
Assignee: nobody → enndeakin
Status: NEW → ASSIGNED
Attachment #8544651 - Flags: feedback?(gavin.sharp)
Iteration: --- → 37.3 - 12 Jan
Comment on attachment 8544651 [details] [diff] [review]
Something like this

Looks good to me! Vladan should probably review too.
Attachment #8544651 - Flags: review?(vdjeric)
Attachment #8544651 - Flags: feedback?(gavin.sharp)
Attachment #8544651 - Flags: feedback+
Comment on attachment 8544651 [details] [diff] [review]
Something like this

Review of attachment 8544651 [details] [diff] [review]:
-----------------------------------------------------------------

How hard would it be to add a histogram for total time spent clearing history after the Forget button was clicked?

::: toolkit/components/telemetry/Histograms.json
@@ +7070,5 @@
>      "keyed": true,
>      "description": "Counts of plugin and content process crashes which are reported with a crash dump."
> +  },
> +  "FX_SANITIZE_CACHE": {
> +    "expires_in_version": "default",

- Set an expiry date here, use "never" if you really think this histogram will be useful long-term. This seems more like an experiment that will not last more than a few versions, but it's your call. "default" means "this histogram was defined before the concept of expiry dates came about, its expiry version still needs to be set". It's basically a TODO, we should have picked a better name than "Default" :)
- Also add the "alert_emails" field so you get automatic notifications of regressions & improvements in these histograms. Point it to the fx-team Telemetry notification email, or create a new email alias for that if one doesn't exist already.
Attachment #8544651 - Flags: review?(vdjeric)
(In reply to Vladan Djeric (:vladan) from comment #3)
> - Set an expiry date here, use "never" if you really think this histogram
> will be useful long-term. This seems more like an experiment that will not
> last more than a few versions, but it's your call. "default" means "this
> histogram was defined before the concept of expiry dates came about, its
> expiry version still needs to be set". It's basically a TODO, we should have
> picked a better name than "Default" :)
> - Also add the "alert_emails" field so you get automatic notifications of
> regressions & improvements in these histograms. Point it to the fx-team
> Telemetry notification email, or create a new email alias for that if one
> doesn't exist already.

Hopefully Gavin can answer these two questions. 1) What expiry to use. 2) What email to use
Flags: needinfo?(gavin.sharp)
There's no fx-desktop alias set up, but you can use my email address and firefox-dev@mozilla.org.

For now I guess you can use Firefox 40 as the expiry.
Flags: needinfo?(gavin.sharp)
Attachment #8544651 - Attachment is obsolete: true
Attachment #8546960 - Flags: review?(vdjeric)
Comment on attachment 8546960 [details] [diff] [review]
Telemetry for sanitize, Address comments

Review of attachment 8546960 [details] [diff] [review]:
-----------------------------------------------------------------

::: toolkit/components/telemetry/Histograms.json
@@ +7147,5 @@
> +    "kind": "exponential",
> +    "high": "30000",
> +    "n_buckets": 20,
> +    "extended_statistics_ok": true,
> +    "description": "Sanitize: Total time it takes to sanitize"

add the unit of time (ms) to the description :)
Attachment #8546960 - Flags: review?(vdjeric) → review+
Iteration: 37.3 - 12 Jan → 38.1 - 26 Jan
https://hg.mozilla.org/mozilla-central/rev/05dfcf108b4f
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 38
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: