Function prof::collate_stacks[][src]

pub fn collate_stacks(profile: StackProfile) -> WeightedSymbolTrie
Expand description

Given some stack traces along with their weights, collate them into a tree structure by function name.

For example: given the following stacks and weights: ([0x1234, 0xabcd], 100) ([0x123a, 0xabff, 0x1234], 200) ([0x1234, 0xffcc], 50) and assuming that 0x1234 and 0x123a come from the function f, 0xabcd and 0xabff come from g, and 0xffcc from h, this will produce:

“f” (350) -> “g” 200 | v “h” (50)