Struct hprof::ProfileNode [] [src]

pub struct ProfileNode {
    pub name: &'static str,
    pub calls: Cell<u32>,
    pub total_time: Cell<u64>,
    pub start_time: Cell<u64>,
    pub recursion: Cell<u32>,
    pub parent: Option<Rc<ProfileNode>>,
    pub children: RefCell<Vec<Rc<ProfileNode>>>,
}

A single node in the profile tree.

NOTE: While the fields are public and are a cell, it is not advisable to modify them.

Fields

Number of calls made to this node.

Total time in ns used by this node and all of its children.

Computed after the last pending ret.

Timestamp in ns when the first call was made to this node.

Number of recursive calls made to this node since the first call.

Parent in the profile tree.

Child nodes.

Methods

impl ProfileNode
[src]

Reset this node and its children, seting relevant fields to 0.

Create a child named name.

Enter this profile node.

Return from this profile node, returning true if there are no pending recursive calls.

Print out the current timing information in a very naive way.

Uses indent to determine how deep to indent the line.