1 /* Copyright (c) 2013 The Chromium OS 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. 4 */ 5 6 #ifndef CRAS_METRICS_H_ 7 #define CRAS_METRICS_H_ 8 9 /* Logs the specified event. */ 10 void cras_metrics_log_event(const char *event); 11 12 /* Sends histogram data. */ 13 void cras_metrics_log_histogram(const char *name, int sample, int min, int max, 14 int nbuckets); 15 16 /* Sends sparse histogram data. */ 17 void cras_metrics_log_sparse_histogram(const char *name, int sample); 18 19 #endif /* CRAS_METRICS_H_ */ 20