core: set thread name for tracy (#4076)

This commit is contained in:
Bart Louwers
2026-01-28 19:24:09 +01:00
committed by GitHub
parent 37e8ca24cf
commit cc88843db7
5 changed files with 22 additions and 2 deletions

View 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