1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CHROMECAST_BASE_METRICS_GROUPED_HISTOGRAM_H_
6 #define CHROMECAST_BASE_METRICS_GROUPED_HISTOGRAM_H_
10 namespace chromecast
{
13 // Registers a predefined list of histograms to be collected per-app. Must be
14 // called before any histograms of the same name are used or registration will
16 void PreregisterAllGroupedHistograms();
18 // Sets the current app name to be used for subsequent grouped histogram
19 // samples (a new metric is generated with the app name as a suffix).
20 void TagAppStartForGroupedHistograms(const std::string
& app_name
);
22 } // namespace metrics
23 } // namespace chromecast
25 #endif // CHROMECAST_BASE_METRICS_GROUPED_HISTOGRAM_H_