mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Add early exit for invalid times.
This commit is contained in:
parent
d592af9c2f
commit
5c92eae3ed
@ -1847,6 +1847,7 @@ uint64_t Worker::GetPidFromTid( uint64_t tid ) const
|
||||
void Worker::GetCpuUsageAtTime( int64_t time, int& own, int& other ) const
|
||||
{
|
||||
own = other = 0;
|
||||
if( time < 0 || time > m_data.lastTime ) return;
|
||||
for( int i=0; i<m_data.cpuDataCount; i++ )
|
||||
{
|
||||
auto& cs = m_data.cpuData[i].cs;
|
||||
|
Loading…
Reference in New Issue
Block a user