mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Cosmetics.
This commit is contained in:
parent
913463635a
commit
9a22b8e83c
@ -389,8 +389,7 @@ Worker::Worker( const char* name, const char* program, const std::vector<ImportE
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
auto td = NoticeThread( v.tid );
|
auto td = NoticeThread( v.tid );
|
||||||
if (td->zoneIdStack.empty())
|
if( td->zoneIdStack.empty() ) continue;
|
||||||
continue;
|
|
||||||
td->zoneIdStack.pop_back();
|
td->zoneIdStack.pop_back();
|
||||||
auto& stack = td->stack;
|
auto& stack = td->stack;
|
||||||
auto zone = stack.back_and_pop();
|
auto zone = stack.back_and_pop();
|
||||||
@ -565,8 +564,7 @@ Worker::Worker( FileRead& f, EventType::Type eventMask, bool bgTasks )
|
|||||||
char tmp[1024];
|
char tmp[1024];
|
||||||
f.Read( tmp, sz );
|
f.Read( tmp, sz );
|
||||||
m_captureName = std::string( tmp, tmp+sz );
|
m_captureName = std::string( tmp, tmp+sz );
|
||||||
if (m_captureName.empty())
|
if( m_captureName.empty() ) m_captureName = f.GetFilename();
|
||||||
m_captureName = f.GetFilename();
|
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
f.Read( sz );
|
f.Read( sz );
|
||||||
@ -4798,7 +4796,7 @@ void Worker::ProcessZoneEnd( const QueueZoneEnd& ev )
|
|||||||
if( slz->selfMin > selfSpan ) slz->selfMin = selfSpan;
|
if( slz->selfMin > selfSpan ) slz->selfMin = selfSpan;
|
||||||
if( slz->selfMax < selfSpan ) slz->selfMax = selfSpan;
|
if( slz->selfMax < selfSpan ) slz->selfMax = selfSpan;
|
||||||
slz->selfTotal += selfSpan;
|
slz->selfTotal += selfSpan;
|
||||||
if ( !isReentry )
|
if( !isReentry )
|
||||||
{
|
{
|
||||||
slz->nonReentrantCount++;
|
slz->nonReentrantCount++;
|
||||||
if( slz->nonReentrantMin > timeSpan ) slz->nonReentrantMin = timeSpan;
|
if( slz->nonReentrantMin > timeSpan ) slz->nonReentrantMin = timeSpan;
|
||||||
@ -7076,7 +7074,7 @@ void Worker::ReconstructZoneStatistics( SrcLocCountMap& countMap, ZoneEvent& zon
|
|||||||
slz.total += timeSpan;
|
slz.total += timeSpan;
|
||||||
slz.sumSq += double( timeSpan ) * timeSpan;
|
slz.sumSq += double( timeSpan ) * timeSpan;
|
||||||
const auto isReentry = HasSrcLocCount( countMap, zone.SrcLoc() );
|
const auto isReentry = HasSrcLocCount( countMap, zone.SrcLoc() );
|
||||||
if ( !isReentry )
|
if( !isReentry )
|
||||||
{
|
{
|
||||||
slz.nonReentrantCount++;
|
slz.nonReentrantCount++;
|
||||||
if( slz.nonReentrantMin > timeSpan ) slz.nonReentrantMin = timeSpan;
|
if( slz.nonReentrantMin > timeSpan ) slz.nonReentrantMin = timeSpan;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user