mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-24 04:09:48 +00:00
vendor/generic/metrics: document API methods.
BUG=b:331214555 TEST=presubmit Change-Id: Iaa5db4b4e30d981848ccdac9966b51cf826d2518 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/5588285 Commit-Queue: Noah Gold <nkgold@google.com> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
This commit is contained in:
parent
8a4df3ac57
commit
2e24140d8b
1 changed files with 21 additions and 6 deletions
27
vendor/generic/metrics/src/client.rs
vendored
27
vendor/generic/metrics/src/client.rs
vendored
|
@ -27,9 +27,24 @@ pub fn set_auth_token(_: &str) {}
|
|||
pub fn set_graphics_api(_: &str) {}
|
||||
pub fn set_package_name(_: &str) {}
|
||||
pub fn merge_session_invariants(_: &[u8]) {}
|
||||
pub fn log_descriptor(_: MetricEventType, _: i64) {}
|
||||
pub fn log_event(_: MetricEventType) {}
|
||||
pub fn log_metric(_: MetricEventType, _: i64) {}
|
||||
pub fn log_histogram_metric(_: MetricEventType, _: i64) {}
|
||||
pub fn log_high_frequency_descriptor_event(_: MetricEventType, _: i64, _: i64) {}
|
||||
pub fn log_event_with_details(_: MetricEventType, _: &RecordDetails) {}
|
||||
|
||||
/// Logs a counter with the given descriptor as aux. data. A descriptor is
|
||||
/// generally an enum value or error code.
|
||||
pub fn log_descriptor(_event_type: MetricEventType, _descriptor: i64) {}
|
||||
|
||||
/// Logs a counter with no aux. data.
|
||||
pub fn log_event(_event_type: MetricEventType) {}
|
||||
|
||||
/// Logs a real valued metric (e.g. a data transfer rate, a latency value, etc)
|
||||
/// with the supplied value.
|
||||
pub fn log_metric(_event_type: MetricEventType, _value: i64) {}
|
||||
|
||||
/// Logs a histogram metric with the supplied value. Note: step is a value to
|
||||
/// be added to the distribution.
|
||||
pub fn log_histogram_metric(_event_type: MetricEventType, _step: i64) {}
|
||||
|
||||
/// Logs a high frequency counter with the supplied aux. data and value.
|
||||
pub fn log_high_frequency_descriptor_event(_: MetricEventType, _descriptor: i64, _step: i64) {}
|
||||
|
||||
/// Logs a counter with additional data.
|
||||
pub fn log_event_with_details(_event_type: MetricEventType, _details: &RecordDetails) {}
|
||||
|
|
Loading…
Reference in a new issue