Skip to content

Instantly share code, notes, and snippets.

@marty1885
Created August 31, 2025 00:39
Show Gist options
  • Select an option

  • Save marty1885/eaebdf68098128635e16b4b8c5da3c72 to your computer and use it in GitHub Desktop.

Select an option

Save marty1885/eaebdf68098128635e16b4b8c5da3c72 to your computer and use it in GitHub Desktop.
patches to get Tenstorren's Tracy forck running on Arch Linux as of 2025-Aug-31
diff --git a/dtl/Diff.hpp b/dtl/Diff.hpp
index 8c9c774f..57067f9f 100644
--- a/dtl/Diff.hpp
+++ b/dtl/Diff.hpp
@@ -164,7 +164,7 @@ namespace dtl {
return trivial;
}
- void enableTrivial () const {
+ void enableTrivial () {
this->trivial = true;
}
diff --git a/profiler/build/unix/build.mk b/profiler/build/unix/build.mk
index 42a9ba0a..d0fc2cf2 100644
--- a/profiler/build/unix/build.mk
+++ b/profiler/build/unix/build.mk
@@ -1,7 +1,7 @@
CFLAGS +=
CXXFLAGS := $(CFLAGS) -std=c++17
DEFINES += -DIMGUI_ENABLE_FREETYPE
-INCLUDES := -I../../../imgui $(shell pkg-config --cflags freetype2 capstone wayland-egl egl wayland-cursor xkbcommon)
+INCLUDES := -I../../../imgui $(shell pkg-config --cflags freetype2 capstone wayland-egl egl wayland-cursor xkbcommon) -I../../../../import-chrome/src/
LIBS := $(shell pkg-config --libs freetype2 capstone wayland-egl egl wayland-cursor xkbcommon) -lpthread -ldl
PROJECT := Tracy
diff --git a/profiler/build/unix/release.mk b/profiler/build/unix/release.mk
index c248bca8..0e5787b4 100644
--- a/profiler/build/unix/release.mk
+++ b/profiler/build/unix/release.mk
@@ -1,4 +1,4 @@
-CFLAGS := -O3
+CFLAGS := -O1 -march=znver2
ifndef TRACY_NO_LTO
CFLAGS += -flto
endif
diff --git a/public/common/TracyTTDeviceData.hpp b/public/common/TracyTTDeviceData.hpp
index 40f678ee..15596ed8 100644
--- a/public/common/TracyTTDeviceData.hpp
+++ b/public/common/TracyTTDeviceData.hpp
@@ -1,6 +1,8 @@
#ifndef __TRACYTTDEVICEDATA_HPP__
#define __TRACYTTDEVICEDATA_HPP__
+#include <nlohmann/json.hpp>
+
namespace tracy {
enum class RiscType : uint8_t { BRISC, NCRISC, TRISC_0, TRISC_1, TRISC_2, ERISC, CORE_AGG };
diff --git a/server/tracy_robin_hood.h b/server/tracy_robin_hood.h
index 65f6fc11..0e374c40 100644
--- a/server/tracy_robin_hood.h
+++ b/server/tracy_robin_hood.h
@@ -48,6 +48,7 @@
#include <string>
#include <type_traits>
#include <utility>
+#include <cstdint>
#if __cplusplus >= 201703L
# include <string_view>
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment