Skip to content

Commit

Permalink
Some explanations
Browse files Browse the repository at this point in the history
Reviewed By: lmvasquezg

Differential Revision: D41110200

fbshipit-source-id: 90ba140c68bd36ce387e5226d78dc0d54a61cd47
  • Loading branch information
stepancheg authored and facebook-github-bot committed Nov 10, 2022
1 parent d037cea commit 302ceb0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions allocative/allocative/src/flamegraph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ use crate::measure::Visitor;

#[derive(Default, Eq, PartialEq, Clone, Debug)]
struct TreeData {
/// Size of this node including children but excluding unique/shared children.
/// For example for `String` this would be `size_of::<String>()`.
size: usize,
/// Size excluding children.
/// Size excluding children. This value is output to flamegraph for given stack.
rem_size: usize,
/// This field if `Box` something.
/// Whether this node is `Box` something.
unique: bool,
/// Child nodes.
children: HashMap<Key, Tree>,
Expand Down

0 comments on commit 302ceb0

Please sign in to comment.