MCPcopy Create free account
hub / github.com/crownengine/crown / callstack

Function callstack

src/core/debug/callstack_emscripten.cpp:28–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 }
27
28 void callstack(log_internal::System system, LogSeverity::Enum severity)
29 {
30 int size = emscripten_get_callstack(EM_LOG_C_STACK | EM_LOG_JS_STACK, NULL, 0);
31
32 char *data = (char *)default_allocator().allocate(size);
33 emscripten_get_callstack(EM_LOG_C_STACK | EM_LOG_JS_STACK, data, size);
34 log_internal::logx(severity, system, data);
35 default_allocator().deallocate(data);
36 }
37
38} // namespace debug
39

Callers

nothing calls this directly

Calls 3

logxFunction · 0.85
allocateMethod · 0.45
deallocateMethod · 0.45

Tested by

no test coverage detected