1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Add basic lock info window.

This commit is contained in:
Bartosz Taudul
2018-12-16 19:58:11 +01:00
parent ff8c9ab6dc
commit 444d5e20f0
3 changed files with 80 additions and 0 deletions
+5
View File
@@ -64,6 +64,8 @@ private:
Short
};
enum { InvalidId = 0xFFFFFFFF };
void InitTextEditor();
const char* ShortenNamespace( const char* name ) const;
@@ -100,6 +102,7 @@ private:
void DrawInfo();
void DrawTextEditor();
void DrawGoToFrame();
void DrawLockInfoWindow();
template<class T>
void ListMemData( T ptr, T end, std::function<void(T&)> DrawAddress, const char* id = nullptr );
@@ -228,6 +231,7 @@ private:
int64_t m_memoryAllocHover;
int m_memoryAllocHoverWait;
const FrameData* m_frames;
uint32_t m_lockInfoWindow;
Region m_highlight;
Region m_highlightZoom;
@@ -258,6 +262,7 @@ private:
BuzzAnim<const void*> m_zoneinfoBuzzAnim;
BuzzAnim<int> m_findZoneBuzzAnim;
BuzzAnim<uint32_t> m_optionsLockBuzzAnim;
BuzzAnim<uint32_t> m_lockInfoAnim;
Vector<const ZoneEvent*> m_zoneInfoStack;
Vector<const GpuEvent*> m_gpuInfoStack;