mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Add support for notification text in View.
This commit is contained in:
parent
980c54e349
commit
77c9a8c407
@ -689,6 +689,12 @@ bool View::DrawImpl()
|
||||
#else
|
||||
ImGui::Text( "View span: %-10s Time span: %-10s ", TimeToString( m_zvEnd - m_zvStart ), TimeToString( m_worker.GetLastTime() - m_worker.GetTimeBegin() ) );
|
||||
#endif
|
||||
if( m_notificationTime > 0 )
|
||||
{
|
||||
m_notificationTime -= io.DeltaTime;
|
||||
ImGui::SameLine();
|
||||
ImGui::TextDisabled( m_notificationText.c_str() );
|
||||
}
|
||||
DrawFrames();
|
||||
DrawZones();
|
||||
ImGui::End();
|
||||
|
@ -283,6 +283,9 @@ private:
|
||||
SetTitleCallback m_stcb;
|
||||
bool m_titleSet = false;
|
||||
|
||||
float m_notificationTime = 0;
|
||||
std::string m_notificationText;
|
||||
|
||||
struct FindZone {
|
||||
enum : uint64_t { Unselected = std::numeric_limits<uint64_t>::max() - 1 };
|
||||
enum class GroupBy : int { Thread, UserText, Callstack };
|
||||
|
Loading…
Reference in New Issue
Block a user