Good catch! Assuming a zero time delta is a special case is indeed not very prudent.
Thank you for this fix I appreciate it.
Validation: Tried the patch locally and all histograms seem to be recorded properly.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Good catch! Assuming a zero time delta is a special case is indeed not very prudent.
Thank you for this fix I appreciate it.
Validation: Tried the patch locally and all histograms seem to be recorded properly.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
| 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. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
2 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
Stop recording Scheduling.ThreadController.*.Any.* in microseconds
When running content_unittests test AttributionInteropTest I noticed
errors in output, reading like this:
```
Histogram Scheduling.ThreadController.ActiveIntervalDuration.Any.Other
has mismatched construction arguments
```
This was caused by first calling UmaHistogramTimes() and then
UmaHistogramCustomMicrosecondsTimes() with the same histogram name. I
think the reason is that LogIntervalMetric() calls attempt to record a
zero delta, which seems to be coming from lazy_now. Another reason for
zero deltas could be time mocking in the test.
The GetSuffixForHistogram() uses this particular delta to choose the
time suffix "Any". It should rather be "Short" when recording with
UmaHistogramCustomMicrosecondsTimes().
The fix is to use another suffix formatter function for the
UmaHistogramTimes() catch-all recording.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |