From 8c8cb8899f533e42b92eb5cfb710a203651ec045 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 30 Nov 2025 21:54:19 +0100 Subject: [PATCH] Store manual chunk level. --- profiler/src/profiler/TracyManualData.cpp | 3 ++- profiler/src/profiler/TracyManualData.hpp | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/profiler/src/profiler/TracyManualData.cpp b/profiler/src/profiler/TracyManualData.cpp index 6d003a68..6ffeabf8 100644 --- a/profiler/src/profiler/TracyManualData.cpp +++ b/profiler/src/profiler/TracyManualData.cpp @@ -100,7 +100,8 @@ void TracyManualData::AddManualChunk( const std::string_view& manual, int start, .text = std::move( text ), .section = std::move( section ), .title = std::move( title ), - .parents = std::move( parents ) + .parents = std::move( parents ), + .level = (int)levels.size() - 1 } ); } } diff --git a/profiler/src/profiler/TracyManualData.hpp b/profiler/src/profiler/TracyManualData.hpp index fadcd9e6..07f15646 100644 --- a/profiler/src/profiler/TracyManualData.hpp +++ b/profiler/src/profiler/TracyManualData.hpp @@ -18,6 +18,7 @@ public: std::string section; std::string title; std::string parents; + int level; }; TracyManualData();