mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-14 04:01:48 +00:00
Store proper cpu time.
This commit is contained in:
parent
5b6cbc5306
commit
7e3ddfff1f
@ -871,7 +871,7 @@ void View::ProcessGpuZoneBegin( const QueueGpuZoneBegin& ev )
|
|||||||
CheckSourceLocation( ev.srcloc );
|
CheckSourceLocation( ev.srcloc );
|
||||||
|
|
||||||
auto zone = m_slab.AllocInit<GpuEvent>();
|
auto zone = m_slab.AllocInit<GpuEvent>();
|
||||||
zone->cpuStart = ev.cpuTime;
|
zone->cpuStart = ev.cpuTime * m_timerMul;
|
||||||
zone->cpuEnd = -1;
|
zone->cpuEnd = -1;
|
||||||
zone->gpuStart = std::numeric_limits<int64_t>::max();
|
zone->gpuStart = std::numeric_limits<int64_t>::max();
|
||||||
zone->gpuEnd = -1;
|
zone->gpuEnd = -1;
|
||||||
@ -904,7 +904,7 @@ void View::ProcessGpuZoneEnd( const QueueGpuZoneEnd& ev )
|
|||||||
ctx->queue.push_back( zone );
|
ctx->queue.push_back( zone );
|
||||||
|
|
||||||
std::lock_guard<std::mutex> lock( m_lock );
|
std::lock_guard<std::mutex> lock( m_lock );
|
||||||
zone->cpuEnd = ev.cpuTime;
|
zone->cpuEnd = ev.cpuTime * m_timerMul;
|
||||||
zone->thread = ev.thread;
|
zone->thread = ev.thread;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user