Skip to content

Commit

Permalink
Add ifdef Urho3D_Profiling to SetProfilerThreadName
Browse files Browse the repository at this point in the history
  • Loading branch information
TrevorCash authored and rokups committed Jul 26, 2018
1 parent 0395c71 commit 5017f64
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/Urho3D/Core/Profiler.cpp
Expand Up @@ -33,11 +33,15 @@ namespace Urho3D

void SetProfilerThreadName(const char* name)
{
#if URHO3D_PROFILING

#if _WIN32
tracy::SetThreadName(GetCurrentThread(), name);
#else
tracy::SetThreadName(pthread_self(), name);
#endif

#endif
}

}

0 comments on commit 5017f64

Please sign in to comment.