MCPcopy Create free account
hub / github.com/defold/defold / ProfilerLogText

Function ProfilerLogText

engine/profiler/src/profiler.cpp:708–720  ·  view source on GitHub ↗

send a text to the connected profiler * Send a text to the connected profiler * * @name profiler.log_text * @param text [type:string] the string to send to the connected profiler * * @examples * ```lua * profiler.log_text("Event: " .. name) * ``` */

Source from the content-addressed store, hash-verified

706 * ```
707 */
708static int ProfilerLogText(lua_State* L)
709{
710 DM_LUA_STACK_CHECK(L, 0);
711
712 const char* text = luaL_checkstring(L, 1);
713 if (!text)
714 {
715 return DM_LUA_ERROR("Expected string as second argument");
716 }
717
718 ProfileLogText("%s", text);
719 return 0;
720}
721
722/*# logs the current frame to the console
723 * logs the current frame to the console

Callers

nothing calls this directly

Calls 1

ProfileLogTextFunction · 0.50

Tested by

no test coverage detected