mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Remove unused variables.
This commit is contained in:
parent
c9240c100d
commit
95cf143336
@ -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" );
|
||||
|
@ -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 )
|
||||
{
|
||||
|
@ -17231,7 +17231,6 @@ unordered_flat_map<uint32_t, View::MemPathData> View::GetCallstackPaths( const M
|
||||
unordered_flat_map<uint32_t, MemPathData> 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<uint64_t, MemCallstackFr
|
||||
|
||||
void View::DrawFrameTreeLevel( const unordered_flat_map<uint64_t, CallstackFrameTree>& tree, int& idx )
|
||||
{
|
||||
auto& io = ImGui::GetIO();
|
||||
|
||||
std::vector<unordered_flat_map<uint64_t, CallstackFrameTree>::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<uint64_t, CallstackFrame
|
||||
|
||||
void View::DrawParentsFrameTreeLevel( const unordered_flat_map<uint64_t, CallstackFrameTree>& tree, int& idx )
|
||||
{
|
||||
auto& io = ImGui::GetIO();
|
||||
|
||||
std::vector<unordered_flat_map<uint64_t, CallstackFrameTree>::const_iterator> sorted;
|
||||
sorted.reserve( tree.size() );
|
||||
for( auto it = tree.begin(); it != tree.end(); ++it )
|
||||
|
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user