MCPcopy Create free account
hub / github.com/DFHack/dfhack / record_widget_runtime

Function record_widget_runtime

plugins/overlay.cpp:232–235  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232static void record_widget_runtime(string name, uint32_t start_ms) {
233 auto & counters = Core::getInstance().perf_counters;
234 counters.incCounter(counters.overlay_per_widget[name.c_str()], start_ms);
235}
236
237DFHACK_PLUGIN_LUA_FUNCTIONS {
238 DFHACK_LUA_FUNCTION(record_widget_runtime),

Callers

nothing calls this directly

Calls 2

incCounterMethod · 0.80
c_strMethod · 0.80

Tested by

no test coverage detected