summaryrefslogtreecommitdiff
path: root/cras/src/common/cras_metrics.h
blob: 814b3dde8e0cd377902d2897c699939988fcef50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

#ifndef CRAS_METRICS_H_
#define CRAS_METRICS_H_

/* Logs the specified event. */
void cras_metrics_log_event(const char *event);

/* Sends histogram data. */
void cras_metrics_log_histogram(const char *name, int sample, int min, int max,
				int nbuckets);

/* Sends sparse histogram data. */
void cras_metrics_log_sparse_histogram(const char *name, int sample);

#endif /* CRAS_METRICS_H_ */