0
0
mirror of https://github.com/wolfpld/tracy.git synced 2026-01-18 17:11:26 +01:00

Implement automatic callstack annotation.

This commit is contained in:
Bartosz Taudul
2026-01-11 20:54:10 +01:00
parent 0b9dcc0fbe
commit ed8fc7690f

View File

@@ -168,11 +168,18 @@ void View::DrawCallstackTable( uint32_t callstack, bool globalEntriesButton )
#ifndef __EMSCRIPTEN__
if( s_config.llm )
{
bool force = false;
if( s_config.llmAnnotateCallstacks )
{
std::lock_guard lock( m_callstackDescLock );
auto it = m_callstackDesc.find( callstack );
if( it == m_callstackDesc.end() ) force = true;
}
ImGui::SameLine();
ImGui::SeparatorEx( ImGuiSeparatorFlags_Vertical );
ImGui::SameLine();
bool clicked = false;
if( ImGui::SmallButton( ICON_FA_TAG ) )
if( ImGui::SmallButton( ICON_FA_TAG ) || force )
{
clicked = true;
nlohmann::json req = {