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

Function ProfileHandler

engine/engine/src/engine_service.cpp:856–862  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

854 //
855
856 static void ProfileHandler(void* user_data, dmWebServer::Request* request)
857 {
858 dmWebServer::SetStatusCode(request, 200);
859 dmWebServer::SendAttribute(request, "Content-Type", "text/html");
860 dmWebServer::SendAttribute(request, "Cache-Control", "no-store");
861 dmWebServer::Send(request, PROFILER_HTML, PROFILER_HTML_SIZE);
862 }
863
864 static void AddProfilerHandler(dmWebServer::HServer web_server, const char* path, const dmWebServer::HandlerParams* params)
865 {

Callers

nothing calls this directly

Calls 3

SetStatusCodeFunction · 0.50
SendAttributeFunction · 0.50
SendFunction · 0.50

Tested by

no test coverage detected