MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / unregister_profiler

Method unregister_profiler

core/debugger/engine_debugger.cpp:54–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54void EngineDebugger::unregister_profiler(const StringName &p_name) {
55 ERR_FAIL_COND_MSG(!profilers.has(p_name), vformat("Profiler not registered: '%s'.", p_name));
56 Profiler &p = profilers[p_name];
57 if (p.active && p.toggle) {
58 p.toggle(p.data, false, Array());
59 p.active = false;
60 }
61 profilers.erase(p_name);
62}
63
64void EngineDebugger::register_message_capture(const StringName &p_name, Capture p_func) {
65 ERR_FAIL_COND_MSG(captures.has(p_name), vformat("Capture already registered: '%s'.", p_name));

Callers

nothing calls this directly

Calls 5

vformatFunction · 0.85
ArrayClass · 0.50
hasMethod · 0.45
toggleMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected