core: set thread name for tracy (#4076)
This commit is contained in:
11
src/mbgl/util/instrumentation.cpp
Normal file
11
src/mbgl/util/instrumentation.cpp
Normal file
@@ -0,0 +1,11 @@
|
||||
#include <mbgl/util/instrumentation.hpp>
|
||||
|
||||
namespace mbgl::instrumentation {
|
||||
|
||||
void setThreadName([[maybe_unused]] const std::string &name) {
|
||||
#ifdef MLN_TRACY_ENABLE
|
||||
tracy::SetThreadName(name.c_str());
|
||||
#endif
|
||||
}
|
||||
|
||||
}; // namespace mbgl::instrumentation
|
||||
Reference in New Issue
Block a user