summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAiraYumi <aira.youme@airanyumi.net>2024-04-01 21:41:21 -0400
committerAndrey Lihatskiy <alihatskiy@productengine.com>2024-04-02 14:21:00 +0300
commita93344b4db2654e91b4daa9f2709daf448c03a8e (patch)
tree50b9f30c1aa47ee74d0c776f9274143ea05c7983
parent74900fd4380dd57eb444b2fc1379bd83872a0726 (diff)
enable tracy for linux and build fix
-rw-r--r--autobuild.xml14
-rw-r--r--indra/llcommon/llprofiler.h5
2 files changed, 18 insertions, 1 deletions
diff --git a/autobuild.xml b/autobuild.xml
index 5fbccd0d4c..612421f8c9 100644
--- a/autobuild.xml
+++ b/autobuild.xml
@@ -2616,6 +2616,20 @@ Copyright (c) 2012, 2014, 2015, 2016 nghttp2 contributors</string>
<key>name</key>
<string>windows64</string>
</map>
+ <key>linux64</key>
+ <map>
+ <key>archive</key>
+ <map>
+ <key>hash</key>
+ <string>0cac6af362861d90cdd3dc4adfff95f54e619f4a</string>
+ <key>hash_algorithm</key>
+ <string>sha1</string>
+ <key>url</key>
+ <string>https://github.com/secondlife/3p-tracy/releases/download/v0.8.1%2Br1/tracy-v0.8.1.38bf5f3-linux64-38bf5f3.tar.zst</string>
+ </map>
+ <key>name</key>
+ <string>linux64</string>
+ </map>
</map>
<key>license</key>
<string>bsd</string>
diff --git a/indra/llcommon/llprofiler.h b/indra/llcommon/llprofiler.h
index af5e5777bf..0297bbe592 100644
--- a/indra/llcommon/llprofiler.h
+++ b/indra/llcommon/llprofiler.h
@@ -74,6 +74,10 @@
#define LL_PROFILER_CONFIGURATION LL_PROFILER_CONFIG_FAST_TIMER
#endif
+#if LL_PROFILER_CONFIGURATION == LL_PROFILER_CONFIG_TRACY || LL_PROFILER_CONFIGURATION == LL_PROFILER_CONFIG_TRACY_FAST_TIMER
+ #include "Tracy.hpp"
+#endif
+
extern thread_local bool gProfilerEnabled;
#if defined(LL_PROFILER_CONFIGURATION) && (LL_PROFILER_CONFIGURATION > LL_PROFILER_CONFIG_NONE)
@@ -84,7 +88,6 @@ extern thread_local bool gProfilerEnabled;
// #define TRACY_NO_BROADCAST 1
// #define TRACY_ONLY_LOCALHOST 1
#define TRACY_ONLY_IPV4 1
- #include "Tracy.hpp"
// Enable OpenGL profiling
#define LL_PROFILER_ENABLE_TRACY_OPENGL 0