Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
google
GitHub Repository: google/crosvm
Path: blob/main/metrics/src/sys/windows.rs
5394 views
1
// Copyright 2022 The ChromiumOS Authors
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
pub(crate) mod controller;
6
pub mod gpu_metrics;
7
pub mod system_metrics;
8
9
use std::time::Duration;
10
11
pub use gpu_metrics::*;
12
13
pub const METRICS_UPLOAD_INTERVAL: Duration = Duration::from_secs(60);
14
pub const API_GUEST_ANGLE_VK_ENUM_NAME: &str = "API_GUEST_ANGLE_VK";
15
pub const API_HOST_ANGLE_D3D_ENUM_NAME: &str = "API_HOST_ANGLE_D3D";
16
17
#[derive(Debug)]
18
pub enum Error {
19
CannotCloneEvent,
20
CannotInstantiateEvent,
21
InstanceAlreadyExists,
22
}
23
24
pub type Result<T> = std::result::Result<T, Error>;
25
26