[][src]Struct rayon_logs::RunLog

pub struct RunLog {
    pub threads_number: usize,
    pub tasks_logs: Vec<TaskLog>,
    pub duration: u64,
    pub tags: Vec<String>,
    pub subgraphs: Vec<(usize, usize, usize, usize)>,
}

Logged information.

This stores tasks information, threads number and run duration. Obtained by ThreadPool::install.

Fields

threads_number: usize

total number of threads (some might be unused).

tasks_logs: Vec<TaskLog>

fork-join tasks.

duration: u64

total run time in nanoseconds.

tags: Vec<String>

all strings used for tagging tasks.

subgraphs: Vec<(usize, usize, usize, usize)>

subgraphs: some parts of the graph can be tagged with a tag and usize values are: start task, ending task, tag_id, recorded size

Methods

impl RunLog[src]

pub fn load<P: AsRef<Path>>(path: P) -> Result<RunLog, Error>[src]

Load a rayon_logs log file and deserializes it into a RunLog.

pub fn save_svg<P: AsRef<Path>>(&self, path: P) -> Result<(), Error>[src]

Save an svg file of all logged information.

pub fn save<P: AsRef<Path>>(&self, path: P) -> Result<(), Error>[src]

Save log file of currently recorded tasks logs.

Trait Implementations

impl Debug for RunLog[src]

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

impl Serialize for RunLog[src]

Auto Trait Implementations

impl RefUnwindSafe for RunLog

impl Send for RunLog

impl Sync for RunLog

impl Unpin for RunLog

impl UnwindSafe for RunLog

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: Deserialize<'de>, 
[src]

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

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

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,