fidl_data_zx/
sampler.rs

1// Copyright 2022 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// DO NOT EDIT.
6// Generated from FIDL library `zx` by zither, a Fuchsia platform tool.
7
8#![allow(unused_imports)]
9
10use zerocopy::{FromBytes, IntoBytes};
11
12use crate::zx_common::*;
13
14/// The act of taking a sample takes on the order of single digit microseconds.
15/// A period close to or shorter than that doesn't make sense.
16pub const SAMPLER_MIN_PERIOD: i64 = 10000;
17
18pub const SAMPLER_MAX_BUFFER_SIZE: usize = 1073741824;
19
20#[repr(C)]
21#[derive(Clone, Copy, Debug, Eq, FromBytes, IntoBytes, PartialEq)]
22pub struct SamplerConfig {
23    pub period: Duration,
24    pub buffer_size: usize,
25    pub discipline: u64,
26}