mirror of
https://github.com/denoland/deno.git
synced 2024-10-31 09:14:20 -04:00
c9614d86c1
Fixes some sed errors introduced in c43cfe. Unfortunately moving libdeno required splitting build.rs into two parts, one for cli and one for core. I've also removed the arm64 build - it's complicating things at this re-org and we're not even testing it. I need to swing back to it and get tools/test.py running for it.
26 lines
978 B
Rust
26 lines
978 B
Rust
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
|
|
#![allow(unused_imports)]
|
|
#![allow(dead_code)]
|
|
#![cfg_attr(
|
|
feature = "cargo-clippy",
|
|
allow(clippy::all, clippy::pedantic)
|
|
)]
|
|
use crate::isolate_state;
|
|
use flatbuffers;
|
|
use std::sync::atomic::Ordering;
|
|
|
|
// GN_OUT_DIR is set either by build.rs (for the Cargo build), or by
|
|
// build_extra/rust/run.py (for the GN+Ninja build).
|
|
include!(concat!(env!("GN_OUT_DIR"), "/gen/cli/msg_generated.rs"));
|
|
|
|
impl<'a> From<&'a isolate_state::Metrics> for MetricsResArgs {
|
|
fn from(m: &'a isolate_state::Metrics) -> Self {
|
|
MetricsResArgs {
|
|
ops_dispatched: m.ops_dispatched.load(Ordering::SeqCst) as u64,
|
|
ops_completed: m.ops_completed.load(Ordering::SeqCst) as u64,
|
|
bytes_sent_control: m.bytes_sent_control.load(Ordering::SeqCst) as u64,
|
|
bytes_sent_data: m.bytes_sent_data.load(Ordering::SeqCst) as u64,
|
|
bytes_received: m.bytes_received.load(Ordering::SeqCst) as u64,
|
|
}
|
|
}
|
|
}
|