summaryrefslogtreecommitdiffstats
path: root/metricsd/uploader/metrics_hashes.h
diff options
context:
space:
mode:
authorBertrand SIMONNET <bsimonnet@google.com>2015-08-10 11:27:31 -0700
committerBertrand SIMONNET <bsimonnet@google.com>2015-08-10 15:26:01 -0700
commitda21ac0751a3abf3502ff74c5de7ad95db52ba30 (patch)
treec41ed39dda40a2e1a04404edac00f5d71fe9bba4 /metricsd/uploader/metrics_hashes.h
parentfec4d2cc3f5c1d98b616d6d9a6bc309bebb3783c (diff)
downloadcore-da21ac0751a3abf3502ff74c5de7ad95db52ba30.tar.gz
core-da21ac0751a3abf3502ff74c5de7ad95db52ba30.tar.bz2
core-da21ac0751a3abf3502ff74c5de7ad95db52ba30.zip
metricsd: Rename metrics to metricsd.
This makes the import path less confusing: * metrics/metrics_library.h is imported from the exported headers. * metricsd/* for includes by the metrics daemon itself. BUG: 22879597 Change-Id: I9f44ea3a548cae39d4546fcd724e8007f6dd4bd0
Diffstat (limited to 'metricsd/uploader/metrics_hashes.h')
-rw-r--r--metricsd/uploader/metrics_hashes.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/metricsd/uploader/metrics_hashes.h b/metricsd/uploader/metrics_hashes.h
new file mode 100644
index 000000000..8679077e1
--- /dev/null
+++ b/metricsd/uploader/metrics_hashes.h
@@ -0,0 +1,18 @@
+// Copyright 2014 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 METRICS_UPLOADER_METRICS_HASHES_H_
+#define METRICS_UPLOADER_METRICS_HASHES_H_
+
+#include <string>
+
+namespace metrics {
+
+// Computes a uint64 hash of a given string based on its MD5 hash. Suitable for
+// metric names.
+uint64_t HashMetricName(const std::string& name);
+
+} // namespace metrics
+
+#endif // METRICS_UPLOADER_METRICS_HASHES_H_