MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Log

Method Log

Source/Engine/Debug/DebugLog.cpp:67–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65#endif
66
67void DebugLog::Log(LogType type, const StringView& message)
68{
69#if USE_CSHARP
70 if (CacheMethods())
71 return;
72
73 auto scriptsDomain = Scripting::GetScriptsDomain();
74 MainThreadManagedInvokeAction::ParamsBuilder params;
75 params.AddParam(type);
76 params.AddParam(message, scriptsDomain);
77#if BUILD_RELEASE
78 params.AddParam(StringView::Empty, scriptsDomain);
79#else
80 const String stackTrace = Platform::GetStackTrace(1);
81 params.AddParam(stackTrace, scriptsDomain);
82#endif
83 MainThreadManagedInvokeAction::Invoke(Internal_SendLog, params);
84#endif
85}
86
87void DebugLog::LogException(MObject* exceptionObject)
88{

Callers 8

SerializeMethod · 0.45
DeserializeMethod · 0.45
SerializeMethod · 0.45
DeserializeMethod · 0.45
RestoreMethod · 0.45
TickMethod · 0.45
ProcessGroupCustomMethod · 0.45
InitCustomNodeMethod · 0.45

Calls 2

CacheMethodsFunction · 0.85
AddParamMethod · 0.80

Tested by

no test coverage detected