mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
More navigation extraction.
This commit is contained in:
parent
10dbefefab
commit
7ed1c4ffb1
@ -14272,25 +14272,6 @@ void View::DrawCallstackCalls( uint32_t callstack, uint16_t limit ) const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void View::SetViewToLastFrames()
|
|
||||||
{
|
|
||||||
const int total = m_worker.GetFrameCount( *m_frames );
|
|
||||||
|
|
||||||
m_vd.zvStart = m_worker.GetFrameBegin( *m_frames, std::max( 0, total - 4 ) );
|
|
||||||
if( total == 1 )
|
|
||||||
{
|
|
||||||
m_vd.zvEnd = m_worker.GetLastTime();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
m_vd.zvEnd = m_worker.GetFrameBegin( *m_frames, total - 1 );
|
|
||||||
}
|
|
||||||
if( m_vd.zvEnd == m_vd.zvStart )
|
|
||||||
{
|
|
||||||
m_vd.zvEnd = m_worker.GetLastTime();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void View::DrawSourceTooltip( const char* filename, uint32_t srcline, int before, int after, bool separateTooltip )
|
void View::DrawSourceTooltip( const char* filename, uint32_t srcline, int before, int after, bool separateTooltip )
|
||||||
{
|
{
|
||||||
if( !filename ) return;
|
if( !filename ) return;
|
||||||
|
@ -130,4 +130,23 @@ void View::CenterAtTime( int64_t t )
|
|||||||
ZoomToRange( t - hr, t + hr );
|
ZoomToRange( t - hr, t + hr );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void View::SetViewToLastFrames()
|
||||||
|
{
|
||||||
|
const int total = m_worker.GetFrameCount( *m_frames );
|
||||||
|
|
||||||
|
m_vd.zvStart = m_worker.GetFrameBegin( *m_frames, std::max( 0, total - 4 ) );
|
||||||
|
if( total == 1 )
|
||||||
|
{
|
||||||
|
m_vd.zvEnd = m_worker.GetLastTime();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
m_vd.zvEnd = m_worker.GetFrameBegin( *m_frames, total - 1 );
|
||||||
|
}
|
||||||
|
if( m_vd.zvEnd == m_vd.zvStart )
|
||||||
|
{
|
||||||
|
m_vd.zvEnd = m_worker.GetLastTime();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user