| 58 | } |
| 59 | |
| 60 | std::string formatNodeLabel(std::string_view label, double ms, double percent) { |
| 61 | char buffer[256]; |
| 62 | std::snprintf(buffer, sizeof(buffer), "%.*s %.3f ms | %.1f%%", static_cast<int>(label.size()), label.data(), ms, percent); |
| 63 | return buffer; |
| 64 | } |
| 65 | |
| 66 | bool isVisibleNode(const ProfileTreeEntry& entry) { return entry.smoothedMs > 0.0001; } |
| 67 |