From d72898087f3276ece33f124f7f4ab5c35c21c4d4 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 11 May 2025 17:09:22 +0200 Subject: [PATCH] Allow creating TracyLlm when LLM is disabled. --- profiler/src/profiler/TracyLlm.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/profiler/src/profiler/TracyLlm.cpp b/profiler/src/profiler/TracyLlm.cpp index c470ba02..1c86f943 100644 --- a/profiler/src/profiler/TracyLlm.cpp +++ b/profiler/src/profiler/TracyLlm.cpp @@ -9,9 +9,12 @@ namespace tracy { TracyLlm::TracyLlm() - : m_ollama( std::make_unique( s_config.llmAddress ) ) - , m_valid( m_ollama->is_running() ) + : m_valid( false ) { + if( !s_config.llm ) return; + + m_ollama = std::make_unique( s_config.llmAddress ); + m_valid = m_ollama->is_running(); } TracyLlm::~TracyLlm()