deno/cli/metrics.rs
Bartek Iwańczuk e0bcecee60
refactor: Remove atomics from metrics (#3968)
* replace "AtomicUsize" with "u64" for field type on "Metrics"
* move "compiler_starts" field from "Metrics" to "GlobalState"
2020-02-11 17:23:40 +01:00

11 lines
282 B
Rust

// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
#[derive(Default)]
pub struct Metrics {
pub ops_dispatched: u64,
pub ops_completed: u64,
pub bytes_sent_control: u64,
pub bytes_sent_data: u64,
pub bytes_received: u64,
pub resolve_count: u64,
}