Struct rayon_logs::TaskLog [−][src]
pub struct TaskLog { pub start_time: u64, pub end_time: u64, pub thread_id: usize, pub children: Vec<usize>, pub work: Option<(usize, usize)>, }
The final information produced for log viewers. A 'task' here is not a rayon task but a subpart of one. a simple example with just one call to join will create 4 tasks:
- the sequential code executed before the join
- the 2 join tasks
- the sequential code executed after the join. The set of all tasks form a fork join graph.
Fields
start_time: u64
starting time (in ns after pool creation)
end_time: u64
ending time (in ns after pool creation)
thread_id: usize
id of thread who ran us
children: Vec<usize>
indices of children tasks (either when forking or joining).
work: Option<(usize, usize)>
a usize tag identifying what kind of things we actually do (if known) and a u64 identifying how much work we do.
Trait Implementations
impl Debug for TaskLog
[src]
impl Debug for TaskLog
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for TaskLog
[src]
impl Clone for TaskLog