mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 06:44:35 +00:00
Don't display time for hw samples.
This commit is contained in:
parent
326a2a70d8
commit
4e6a1bae22
@ -2648,8 +2648,15 @@ void SourceView::RenderLine( const Tokenizer::Line& line, int lineNum, const Add
|
|||||||
ImGui::BeginTooltip();
|
ImGui::BeginTooltip();
|
||||||
if( ipcnt.local )
|
if( ipcnt.local )
|
||||||
{
|
{
|
||||||
if( worker ) TextFocused( "Local time:", TimeToString( ipcnt.local * worker->GetSamplingPeriod() ) );
|
if( m_cost == 0 )
|
||||||
TextFocused( "Local samples:", RealToString( ipcnt.local ) );
|
{
|
||||||
|
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( ipcnt.ext )
|
||||||
{
|
{
|
||||||
@ -2924,8 +2931,15 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr
|
|||||||
ImGui::BeginTooltip();
|
ImGui::BeginTooltip();
|
||||||
if( ipcnt.local )
|
if( ipcnt.local )
|
||||||
{
|
{
|
||||||
TextFocused( "Local time:", TimeToString( ipcnt.local * worker.GetSamplingPeriod() ) );
|
if( m_cost == 0 )
|
||||||
TextFocused( "Local samples:", RealToString( ipcnt.local ) );
|
{
|
||||||
|
TextFocused( "Local time:", TimeToString( ipcnt.local * worker.GetSamplingPeriod() ) );
|
||||||
|
TextFocused( "Local samples:", RealToString( ipcnt.local ) );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
TextFocused( "Events:", RealToString( ipcnt.local ) );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if( ipcnt.ext )
|
if( ipcnt.ext )
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user