| // Copyright 2022 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| #ifndef CRYPTO_UNEXPORTABLE_KEY_METRICS_H_ |
| #define CRYPTO_UNEXPORTABLE_KEY_METRICS_H_ |
| #include "crypto/crypto_export.h" |
| // Records UMA metrics of TPM availability, latency and successful usage. |
| // Does the work on a new background task. |
| CRYPTO_EXPORT void MaybeMeasureTpmOperations(); |
| // internal namespace to be used by tests only |
| // Note that values here are used in a recorded histogram. Don't change |
| // the values of existing members. |
| // Note that values here are used in a recorded histogram. Don't change |
| // the values of existing members. |
| CRYPTO_EXPORT void MeasureTpmOperationsInternalForTesting(); |
| #endif // CRYPTO_UNEXPORTABLE_KEY_METRICS_H_ |