Commit-Queue | +1 |
alexmos@ ptal //content
pmonette@ ptal //c/b/resource_coordinator
This CL adds Discarding.RetainedWebContents.DiscardLatency to
Tom Lukaszewicznit: `Discarding.TabLifecycleUnit.DiscardLatency UMA metrics`
Done
This metric is specific to the WebContentsDiscard feature and
Tom LukaszewiczCan we update this correspondingly?
Done
return false;
Tom LukaszewiczIn this case, on_discarded_cb is never triggered.
I think we should either:
- make on_discarded_cb to accept bool. false if Discard is cancelled, true when the discard is completed.
- Add code comment to WebContents::Discard that on_discarded_cb is not guaranteed to be triggered.
Added the comment to WebContents::Discard() for the time being. Based on metrics this has a very small effect size (occurs 0.01% of the time).
Once WebContentsDiscard ships and the old codepath is removed it will be easier to return a bool to handle the exceptional circumstance.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
dcheng@ ptal //third_party/blink
dljames@ ptal histograms.xml
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
<histogram name="Discarding.TabLifecycleUnit.DiscardLatency" units="ms"
This was probably discussed already but the description is split into 2 completely different types of metrics:
1) When the discarded tab has its WebContents replaced
2) When the discarded tab has its WebContents retained
Does it make sense to split this into 2 different metrics? Is there a reason we want to keep a single metric for now?
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
chrome/browser/resource_coordinator lgtm
Avi could you take a look at //content/browser (alexmos@ to cc for OOO)
<histogram name="Discarding.TabLifecycleUnit.DiscardLatency" units="ms"
This was probably discussed already but the description is split into 2 completely different types of metrics:
1) When the discarded tab has its WebContents replaced
2) When the discarded tab has its WebContents retainedDoes it make sense to split this into 2 different metrics? Is there a reason we want to keep a single metric for now?
I originally had this as two separate metrics (discussion above [here](https://chromium-review.googlesource.com/c/chromium/src/+/6791366/comment/f88c449f_bb02d892/)).
It aims to measure the same thing across both implementations - though the way the metric is implemented in both is different as you mentioned. Sharing the metric for both will make it easier to compare results during rollout (feature-gated, only one can be active at a given time).
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
histograms.xml lgtm!
<histogram name="Discarding.TabLifecycleUnit.DiscardLatency" units="ms"
Tom LukaszewiczThis was probably discussed already but the description is split into 2 completely different types of metrics:
1) When the discarded tab has its WebContents replaced
2) When the discarded tab has its WebContents retainedDoes it make sense to split this into 2 different metrics? Is there a reason we want to keep a single metric for now?
I originally had this as two separate metrics (discussion above [here](https://chromium-review.googlesource.com/c/chromium/src/+/6791366/comment/f88c449f_bb02d892/)).
It aims to measure the same thing across both implementations - though the way the metric is implemented in both is different as you mentioned. Sharing the metric for both will make it easier to compare results during rollout (feature-gated, only one can be active at a given time).
Ahhh got it - okay can we call that out in the metric, specifically that one or the other will be recorded based on a feature flag / experiment?
<histogram name="Discarding.TabLifecycleUnit.DiscardLatency" units="ms"
Tom LukaszewiczThis was probably discussed already but the description is split into 2 completely different types of metrics:
1) When the discarded tab has its WebContents replaced
2) When the discarded tab has its WebContents retainedDoes it make sense to split this into 2 different metrics? Is there a reason we want to keep a single metric for now?
Darryl JamesI originally had this as two separate metrics (discussion above [here](https://chromium-review.googlesource.com/c/chromium/src/+/6791366/comment/f88c449f_bb02d892/)).
It aims to measure the same thing across both implementations - though the way the metric is implemented in both is different as you mentioned. Sharing the metric for both will make it easier to compare results during rollout (feature-gated, only one can be active at a given time).
Ahhh got it - okay can we call that out in the metric, specifically that one or the other will be recorded based on a feature flag / experiment?
Sure, done!
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Code-Review | +1 |
<histogram name="Discarding.TabLifecycleUnit.DiscardLatency" units="ms"
Tom LukaszewiczThis was probably discussed already but the description is split into 2 completely different types of metrics:
1) When the discarded tab has its WebContents replaced
2) When the discarded tab has its WebContents retainedDoes it make sense to split this into 2 different metrics? Is there a reason we want to keep a single metric for now?
Darryl JamesI originally had this as two separate metrics (discussion above [here](https://chromium-review.googlesource.com/c/chromium/src/+/6791366/comment/f88c449f_bb02d892/)).
It aims to measure the same thing across both implementations - though the way the metric is implemented in both is different as you mentioned. Sharing the metric for both will make it easier to compare results during rollout (feature-gated, only one can be active at a given time).
Tom LukaszewiczAhhh got it - okay can we call that out in the metric, specifically that one or the other will be recorded based on a feature flag / experiment?
Sure, done!
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
[discard] Add latency metric for Tab discarding
This CL adds Discarding.TabLifecycleUnit.DiscardLatency to
TabLifecycleUnit.
This metric measures discard latency for both the retained and
unretained WebContents discarding implementations.
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |