Fix Linux build

This commit is contained in:
Wojtek Figat
2021-07-07 15:38:55 +02:00
parent 6938821467
commit d7b47d7d05

View File

@@ -21,7 +21,7 @@ namespace ProfilerInternal
void BeginEvent(MonoString* nameObj) void BeginEvent(MonoString* nameObj)
{ {
#if COMPILE_WITH_PROFILER #if COMPILE_WITH_PROFILER
const StringView name(mono_string_chars(nameObj), mono_string_length(nameObj)); const StringView name((const Char*)mono_string_chars(nameObj), mono_string_length(nameObj));
ProfilerCPU::BeginEvent(*name); ProfilerCPU::BeginEvent(*name);
#if TRACY_ENABLE #if TRACY_ENABLE
tracy::ScopedZone::Begin(__LINE__, __FILE__, strlen( __FILE__ ), __FUNCTION__, strlen( __FUNCTION__ ), name.Get(), name.Length() ); tracy::ScopedZone::Begin(__LINE__, __FILE__, strlen( __FILE__ ), __FUNCTION__, strlen( __FUNCTION__ ), name.Get(), name.Length() );