Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Unified Diff: media/base/pipeline_impl.cc

Issue 2735383002: Media: Add improved duration histogram (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/pipeline_impl.cc
diff --git a/media/base/pipeline_impl.cc b/media/base/pipeline_impl.cc
index f8761f4c725a3c3a7a444c381a5dac7bf6f6ab14..a1e47d1e1908a49e92c375a36c6ffdf3fed7b45b 100644
--- a/media/base/pipeline_impl.cc
+++ b/media/base/pipeline_impl.cc
@@ -505,7 +505,9 @@ void PipelineImpl::RendererWrapper::SetDuration(base::TimeDelta duration) {
// implementations call DemuxerHost on the media thread.
media_log_->AddEvent(media_log_->CreateTimeEvent(MediaLogEvent::DURATION_SET,
"duration", duration));
- UMA_HISTOGRAM_LONG_TIMES("Media.Duration", duration);
+ UMA_HISTOGRAM_CUSTOM_TIMES(
+ "Media.Duration2", duration, base::TimeDelta::FromMilliseconds(1),
+ base::TimeDelta::FromDays(1), 50 /* bucket_count */);
main_task_runner_->PostTask(
FROM_HERE,
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698