MCPcopy Create free account
hub / github.com/ElectroZybr/LatticeLab / formatNodeLabel

Function formatNodeLabel

App/debug/ProfilerTreeView.cpp:60–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

drawTreeNodeFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected