blob: 1bf7fef153727a567cf23ebd6d46c518639b9bbf [file]
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/update_client/update_client_metrics.h"
#include <cstddef>
#include "base/metrics/histogram_functions.h"
#include "base/strings/strcat.h"
#include "base/time/time.h"
namespace update_client::metrics {
void RecordCRXDownloadTime(base::TimeDelta time, const std::string& app_id) {
base::UmaHistogramLongTimes(
base::StrCat({"UpdateClient.DownloadTime2.", app_id}), time);
base::UmaHistogramLongTimes("UpdateClient.DownloadTime2", time);
}
void RecordCRXUnzipTime(base::TimeDelta time, const std::string& app_id) {
base::UmaHistogramMediumTimes(
base::StrCat({"UpdateClient.UnzipTime.", app_id}), time);
base::UmaHistogramMediumTimes("UpdateClient.UnzipTime", time);
}
} // namespace update_client::metrics