mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 23:44:35 +00:00
Optional ctrl key mod check when running view source with function name.
This commit is contained in:
parent
9a5fb0bb51
commit
4757d101fc
@ -209,6 +209,18 @@ void View::ViewSource( const char* fileName, int line, const char* functionName
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void View::ViewSourceCheckKeyMod( const char* fileName, int line, const char* functionName )
|
||||||
|
{
|
||||||
|
if( ImGui::GetIO().KeyCtrl )
|
||||||
|
{
|
||||||
|
ViewSource( fileName, line );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ViewSource( fileName, line, functionName );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void View::ViewSymbol( const char* fileName, int line, uint64_t baseAddr, uint64_t symAddr )
|
void View::ViewSymbol( const char* fileName, int line, uint64_t baseAddr, uint64_t symAddr )
|
||||||
{
|
{
|
||||||
assert( fileName || symAddr );
|
assert( fileName || symAddr );
|
||||||
|
@ -113,6 +113,7 @@ public:
|
|||||||
void NotifyRootWindowSize( float w, float h ) { m_rootWidth = w; m_rootHeight = h; }
|
void NotifyRootWindowSize( float w, float h ) { m_rootWidth = w; m_rootHeight = h; }
|
||||||
void ViewSource( const char* fileName, int line );
|
void ViewSource( const char* fileName, int line );
|
||||||
void ViewSource( const char* fileName, int line, const char* functionName );
|
void ViewSource( const char* fileName, int line, const char* functionName );
|
||||||
|
void ViewSourceCheckKeyMod( const char* fileName, int line, const char* functionName );
|
||||||
void ViewSymbol( const char* fileName, int line, uint64_t baseAddr, uint64_t symAddr );
|
void ViewSymbol( const char* fileName, int line, uint64_t baseAddr, uint64_t symAddr );
|
||||||
bool ViewDispatch( const char* fileName, int line, uint64_t symAddr );
|
bool ViewDispatch( const char* fileName, int line, uint64_t symAddr );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user