Struct chrome_remote_interface_model::heap_profiler::SamplingHeapProfileSample[][src]

pub struct SamplingHeapProfileSample { /* fields omitted */ }

A single sample from a sampling profile.

Implementations

impl SamplingHeapProfileSample[src]

pub fn new(size: f64, node_id: u32, ordinal: f64) -> Self[src]

pub fn size(&self) -> f64[src]

Allocation size in bytes attributed to the sample.

pub fn node_id(&self) -> u32[src]

Id of the corresponding profile tree node.

pub fn ordinal(&self) -> f64[src]

Time-ordered sample ordinal number. It is unique across all profiles retrieved between startSampling and stopSampling.

Trait Implementations

impl Clone for SamplingHeapProfileSample[src]

impl Debug for SamplingHeapProfileSample[src]

impl<'de> Deserialize<'de> for SamplingHeapProfileSample[src]

impl Serialize for SamplingHeapProfileSample[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.