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

starting time (in ns after pool creation)

ending time (in ns after pool creation)

id of thread who ran us

indices of children tasks (either when forking or joining).

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]

Formats the value using the given formatter. Read more

impl Clone for TaskLog
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for TaskLog

impl Sync for TaskLog