mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Check if plot data contains the earliest timestamp of the whole profile
This commit is contained in:
parent
9fa80c2cc8
commit
cfb11ff8c1
@ -171,11 +171,16 @@ int main( int argc, char** argv )
|
||||
{
|
||||
if( mts > messages[0].timestamp ) mts = messages[0].timestamp;
|
||||
}
|
||||
for( auto& plot : plots )
|
||||
{
|
||||
if( mts > plot.data[0].first ) mts = plot.data[0].first;
|
||||
}
|
||||
for( auto& v : timeline ) v.timestamp -= mts;
|
||||
for( auto& v : messages ) v.timestamp -= mts;
|
||||
for( auto& plot : plots )
|
||||
for( auto& v : plot.data )
|
||||
v.first -= mts;
|
||||
{
|
||||
for( auto& v : plot.data ) v.first -= mts;
|
||||
}
|
||||
|
||||
printf( "\33[2KProcessing...\r" );
|
||||
fflush( stdout );
|
||||
|
Loading…
Reference in New Issue
Block a user