Don't display time for hw samples.

This commit is contained in:
Bartosz Taudul 2021-06-20 00:04:08 +02:00
parent 326a2a70d8
commit 4e6a1bae22
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -2647,10 +2647,17 @@ void SourceView::RenderLine( const Tokenizer::Line& line, int lineNum, const Add
if( m_font ) ImGui::PopFont();
ImGui::BeginTooltip();
if( ipcnt.local )
{
if( m_cost == 0 )
{
if( worker ) TextFocused( "Local time:", TimeToString( ipcnt.local * worker->GetSamplingPeriod() ) );
TextFocused( "Local samples:", RealToString( ipcnt.local ) );
}
else
{
TextFocused( "Events:", RealToString( ipcnt.local ) );
}
}
if( ipcnt.ext )
{
if( worker ) TextFocused( "Child time:", TimeToString( ipcnt.ext * worker->GetSamplingPeriod() ) );
@ -2923,10 +2930,17 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr
if( m_font ) ImGui::PopFont();
ImGui::BeginTooltip();
if( ipcnt.local )
{
if( m_cost == 0 )
{
TextFocused( "Local time:", TimeToString( ipcnt.local * worker.GetSamplingPeriod() ) );
TextFocused( "Local samples:", RealToString( ipcnt.local ) );
}
else
{
TextFocused( "Events:", RealToString( ipcnt.local ) );
}
}
if( ipcnt.ext )
{
TextFocused( "Child time:", TimeToString( ipcnt.ext * worker.GetSamplingPeriod() ) );