mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 06:34:36 +00:00
Check for more throughput values.
This commit is contained in:
parent
fcc0e22c0e
commit
c9352ce228
@ -152,7 +152,11 @@ int main()
|
||||
auto& uai = uav[uaidx];
|
||||
auto& opi = uai.ops[opidx];
|
||||
|
||||
float tp = measurement.attribute( "TP" ) ? atof( measurement.attribute( "TP" ).value() ) : -1;
|
||||
float tp = -1;
|
||||
if( measurement.attribute( "TP" ) ) tp = atof( measurement.attribute( "TP" ).value() );
|
||||
else if( measurement.attribute( "TP_ports" ) ) tp = atof( measurement.attribute( "TP_ports" ).value() );
|
||||
else if( measurement.attribute( "TP_unrolled" ) ) tp = atof( measurement.attribute( "TP_unrolled" ).value() );
|
||||
|
||||
int portid = measurement.attribute( "ports" ) ? ports.Get( measurement.attribute( "ports" ).value() ) : -1;
|
||||
int uops = measurement.attribute( "uops" ) ? atoi( measurement.attribute( "uops" ).value() ) : -1;
|
||||
assert( tp != -1 && uops != -1 );
|
||||
|
Loading…
Reference in New Issue
Block a user