MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / Node

Class Node

src/flameGraph.cpp:68–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

66
67
68class Node {
69 public:
70 u32 _key;
71 u32 _order;
72 const Trie* _trie;
73
74 Node(u32 key, u32 order, const Trie* trie) : _key(key), _order(order), _trie(trie) {
75 }
76
77 static bool orderByName(const Node& a, const Node& b) {
78 return a._order < b._order;
79 }
80
81 static bool orderByTotal(const Node& a, const Node& b) {
82 return a._trie->_total > b._trie->_total;
83 }
84};
85
86
87Trie* FlameGraph::addChild(Trie* f, const char* name, FrameTypeId type, u64 value) {

Callers 2

printFrameMethod · 0.70
printTreeFrameMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected