mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Keep ztime in register.
This commit is contained in:
parent
2c8d519d70
commit
e0ec98d766
@ -5700,11 +5700,13 @@ void View::CalcZoneTimeDataImpl( const V& children, unordered_flat_map<int16_t,
|
|||||||
Adapter a;
|
Adapter a;
|
||||||
if( m_timeDist.exclusiveTime )
|
if( m_timeDist.exclusiveTime )
|
||||||
{
|
{
|
||||||
|
int64_t zt = ztime;
|
||||||
for( auto& child : children )
|
for( auto& child : children )
|
||||||
{
|
{
|
||||||
const auto t = m_worker.GetZoneEnd( a(child) ) - a(child).Start();
|
const auto t = m_worker.GetZoneEnd( a(child) ) - a(child).Start();
|
||||||
ztime -= t;
|
zt -= t;
|
||||||
}
|
}
|
||||||
|
ztime = zt;
|
||||||
}
|
}
|
||||||
for( auto& child : children )
|
for( auto& child : children )
|
||||||
{
|
{
|
||||||
@ -5744,14 +5746,16 @@ void View::CalcZoneTimeDataImpl( const V& children, const ContextSwitch* ctx, un
|
|||||||
Adapter a;
|
Adapter a;
|
||||||
if( m_timeDist.exclusiveTime )
|
if( m_timeDist.exclusiveTime )
|
||||||
{
|
{
|
||||||
|
int64_t zt = ztime;
|
||||||
for( auto& child : children )
|
for( auto& child : children )
|
||||||
{
|
{
|
||||||
int64_t t;
|
int64_t t;
|
||||||
uint64_t cnt;
|
uint64_t cnt;
|
||||||
const auto res = GetZoneRunningTime( ctx, a(child), t, cnt );
|
const auto res = GetZoneRunningTime( ctx, a(child), t, cnt );
|
||||||
assert( res );
|
assert( res );
|
||||||
ztime -= t;
|
zt -= t;
|
||||||
}
|
}
|
||||||
|
ztime = zt;
|
||||||
}
|
}
|
||||||
for( auto& child : children )
|
for( auto& child : children )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user