mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Make small callstack button tooltip optional.
This commit is contained in:
parent
e20e7caab0
commit
851ae9077b
@ -9565,7 +9565,7 @@ void View::FindZonesCompare()
|
||||
}
|
||||
#endif
|
||||
|
||||
void View::SmallCallstackButton( const char* name, uint32_t callstack, int& idx )
|
||||
void View::SmallCallstackButton( const char* name, uint32_t callstack, int& idx, bool tooltip )
|
||||
{
|
||||
bool hilite = m_callstackInfoWindow == callstack;
|
||||
if( hilite )
|
||||
@ -9582,7 +9582,7 @@ void View::SmallCallstackButton( const char* name, uint32_t callstack, int& idx
|
||||
{
|
||||
ImGui::PopStyleColor( 3 );
|
||||
}
|
||||
if( ImGui::IsItemHovered() )
|
||||
if( tooltip && ImGui::IsItemHovered() )
|
||||
{
|
||||
CallstackTooltip( callstack );
|
||||
}
|
||||
|
@ -175,7 +175,7 @@ private:
|
||||
std::pair<int8_t*, size_t> GetMemoryPages() const;
|
||||
const char* GetPlotName( const PlotData* plot ) const;
|
||||
|
||||
void SmallCallstackButton( const char* name, uint32_t callstack, int& idx );
|
||||
void SmallCallstackButton( const char* name, uint32_t callstack, int& idx, bool tooltip = true );
|
||||
void SetViewToLastFrames();
|
||||
int64_t GetZoneChildTime( const ZoneEvent& zone );
|
||||
int64_t GetZoneChildTime( const GpuEvent& zone );
|
||||
|
Loading…
Reference in New Issue
Block a user