Skip to content

Commit 302ceb0

Browse files
stepanchegfacebook-github-bot
authored andcommitted
Some explanations
Reviewed By: lmvasquezg Differential Revision: D41110200 fbshipit-source-id: 90ba140c68bd36ce387e5226d78dc0d54a61cd47
1 parent d037cea commit 302ceb0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

allocative/allocative/src/flamegraph.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,12 @@ use crate::measure::Visitor;
2222

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

0 commit comments

Comments
 (0)