Browse Source

Add profiling zone to Log message

Michael Ragazzon 5 months ago
parent
commit
0805b3c7b3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Source/Core/Log.cpp

+ 2 - 0
Source/Core/Log.cpp

@@ -28,6 +28,7 @@
 
 
 #include "../../Include/RmlUi/Core/Log.h"
 #include "../../Include/RmlUi/Core/Log.h"
 #include "../../Include/RmlUi/Core/Core.h"
 #include "../../Include/RmlUi/Core/Core.h"
+#include "../../Include/RmlUi/Core/Profiling.h"
 #include "../../Include/RmlUi/Core/StringUtilities.h"
 #include "../../Include/RmlUi/Core/StringUtilities.h"
 #include "../../Include/RmlUi/Core/SystemInterface.h"
 #include "../../Include/RmlUi/Core/SystemInterface.h"
 #include "LogDefault.h"
 #include "LogDefault.h"
@@ -38,6 +39,7 @@ namespace Rml {
 
 
 void Log::Message(Log::Type type, const char* fmt, ...)
 void Log::Message(Log::Type type, const char* fmt, ...)
 {
 {
+	RMLUI_ZoneScoped;
 	String string;
 	String string;
 	va_list argument_list;
 	va_list argument_list;
 	va_start(argument_list, fmt);
 	va_start(argument_list, fmt);