From 89bd8b2ba522486602a7cb13d1c7e95895cb2de3 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 30 Apr 2026 21:41:53 +0200 Subject: [PATCH] Add public View method for opening callstack window. --- profiler/src/profiler/TracyView.cpp | 8 ++++++++ profiler/src/profiler/TracyView.hpp | 2 ++ 2 files changed, 10 insertions(+) diff --git a/profiler/src/profiler/TracyView.cpp b/profiler/src/profiler/TracyView.cpp index 5c0101d7..31c64a1c 100644 --- a/profiler/src/profiler/TracyView.cpp +++ b/profiler/src/profiler/TracyView.cpp @@ -1526,4 +1526,12 @@ void View::AddLlmQuery( const char* query ) #endif } +void View::ViewCallstack( uint32_t callstack, uint32_t thread ) +{ + m_callstackView = { + .id = callstack, + .thread = thread + }; +} + } diff --git a/profiler/src/profiler/TracyView.hpp b/profiler/src/profiler/TracyView.hpp index 1441baf7..6c321982 100644 --- a/profiler/src/profiler/TracyView.hpp +++ b/profiler/src/profiler/TracyView.hpp @@ -184,6 +184,8 @@ public: void AddLlmAttachment( const nlohmann::json& json ); void AddLlmQuery( const char* query ); + void ViewCallstack( uint32_t callstack, uint32_t thread ); + bool m_showRanges = false; Range m_statRange; Range m_flameRange;