| 66 | |
| 67 | |
| 68 | class 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 | |
| 87 | Trie* FlameGraph::addChild(Trie* f, const char* name, FrameTypeId type, u64 value) { |
no outgoing calls
no test coverage detected