diff --git a/client/TracySysTrace.cpp b/client/TracySysTrace.cpp index 3dc5a3a4..b0b4b2e8 100644 --- a/client/TracySysTrace.cpp +++ b/client/TracySysTrace.cpp @@ -773,11 +773,13 @@ bool SysTraceStart( int64_t& samplingPeriod ) return false; #endif - int paranoidLevel = 2; const auto paranoidLevelStr = ReadFile( "/proc/sys/kernel/perf_event_paranoid" ); if( !paranoidLevelStr ) return false; +#ifdef TRACY_VERBOSE + int paranoidLevel = 2; paranoidLevel = atoi( paranoidLevelStr ); TracyDebug( "perf_event_paranoid: %i\n", paranoidLevel ); +#endif int switchId = -1, wakeupId = -1; const auto switchIdStr = ReadFile( "/sys/kernel/debug/tracing/events/sched/sched_switch/id" ); diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index c36555e7..3a8eeeb5 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -3503,7 +3503,6 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr { sprintf( buf, "...%s:%i", fileName+fnsz-(30-3-1-m_maxLine), srcline ); } - const auto bufsz = strlen( buf ); TextDisabledUnformatted( buf ); if( ImGui::IsItemHovered() ) { @@ -4590,7 +4589,6 @@ void SourceView::CountHwStats( AddrStatData& as, Worker& worker, const View& vie void SourceView::GatherIpStats( uint64_t baseAddr, AddrStatData& as, const Worker& worker, bool limitView, const View& view ) { - const auto samplesReady = worker.AreSymbolSamplesReady(); auto filename = m_source.filename(); if( limitView ) { diff --git a/server/TracyView.cpp b/server/TracyView.cpp index e60edbf2..69c3b1be 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -17231,7 +17231,6 @@ unordered_flat_map View::GetCallstackPaths( const M unordered_flat_map pathSum; pathSum.reserve( m_worker.GetCallstackPayloadCount() ); - const auto zvMid = m_vd.zvStart + ( m_vd.zvEnd - m_vd.zvStart ) / 2; if( m_memInfo.range.active ) { auto it = std::lower_bound( mem.data.begin(), mem.data.end(), m_memInfo.range.min, []( const auto& lhs, const auto& rhs ) { return lhs.TimeAlloc() < rhs; } ); @@ -17819,8 +17818,6 @@ void View::DrawMemory() } ImGui::PopStyleVar(); - const auto zvMid = m_vd.zvStart + ( m_vd.zvEnd - m_vd.zvStart ) / 2; - ImGui::Separator(); ImGui::BeginChild( "##memory" ); if( ImGui::TreeNode( ICON_FA_AT " Allocations" ) ) @@ -18218,8 +18215,6 @@ void View::DrawFrameTreeLevel( const unordered_flat_map& tree, int& idx ) { - auto& io = ImGui::GetIO(); - std::vector::const_iterator> sorted; sorted.reserve( tree.size() ); for( auto it = tree.begin(); it != tree.end(); ++it ) @@ -18340,8 +18335,6 @@ void View::DrawFrameTreeLevel( const unordered_flat_map& tree, int& idx ) { - auto& io = ImGui::GetIO(); - std::vector::const_iterator> sorted; sorted.reserve( tree.size() ); for( auto it = tree.begin(); it != tree.end(); ++it ) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 4fc1508e..8f139f45 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -1420,7 +1420,7 @@ Worker::Worker( FileRead& f, EventType::Type eventMask, bool bgTasks ) data[idx].fi = fi; data[idx].state.store( JobData::InProgress, std::memory_order_release ); - td->Queue( [this, &data, idx, fi, fileVer, cdict] { + td->Queue( [this, &data, idx, fi, cdict] { if( cdict ) { fi->csz = m_texcomp.Pack( data[idx].ctx, cdict, data[idx].outbuf, data[idx].outsz, data[idx].buf, fi->w * fi->h / 2 );