Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8835c5b5 authored by Bertrand SIMONNET's avatar Bertrand SIMONNET
Browse files

metricsd: Log the histogram name to hash mapping.

When running the metrics_daemon in verbose mode, log the histogram name
along with the hash name.
This is useful when debugging as the protobuf message only contains the
hash of the name.

Change-Id: Ifea7edce55d62d30994ec7b75bb8728f6a0c40e8
parent 03bbd64a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ uint64_t MetricsLogBase::Hash(const std::string& value) {
  // name.  We can then use this logging to find out what histogram name was
  // being hashed to a given MD5 value by just running the version of Chromium
  // in question with --enable-logging.
  DVLOG(1) << "Metrics: Hash numeric [" << value << "]=[" << hash << "]";
  VLOG(1) << "Metrics: Hash numeric [" << value << "]=[" << hash << "]";

  return hash;
}