Struct rayon_logs::RunLog [−][src]
Store information on all tasks and threads number. We also store threads number because sometimes all threads are not used.
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.
Methods
impl RunLog
[src]
impl RunLog
pub fn load<P: AsRef<Path>>(path: P) -> Result<RunLog, Error>
[src]
pub fn load<P: AsRef<Path>>(path: P) -> Result<RunLog, Error>
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]
pub fn save_svg<P: AsRef<Path>>(&self, path: P) -> Result<(), Error>
Save an svg file of all logged information.
pub fn save<P: AsRef<Path>>(&self, path: P) -> Result<(), Error>
[src]
pub fn save<P: AsRef<Path>>(&self, path: P) -> Result<(), Error>
Save log file of currently recorded tasks logs.