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

Allow viewing source from zone trace.

This commit is contained in:
Bartosz Taudul
2018-08-18 14:26:10 +02:00
parent fb876344e3
commit 410616f7f8
2 changed files with 102 additions and 16 deletions
+2 -1
View File
@@ -54,6 +54,7 @@ public:
static bool Draw();
void NotifyRootWindowSize( float w, float h ) { m_rootWidth = w; m_rootHeight = h; }
void SetTextEditorFile( const char* fileName, int line );
private:
enum class Namespace : uint8_t
@@ -64,7 +65,6 @@ private:
};
void InitTextEditor();
void SetTextEditorFile( const char* fileName, int line );
const char* ShortenNamespace( const char* name ) const;
@@ -239,6 +239,7 @@ private:
Animation m_zoomAnim;
BuzzAnim<int> m_callstackBuzzAnim;
BuzzAnim<int> m_callstackTreeBuzzAnim;
BuzzAnim<const void*> m_zoneinfoBuzzAnim;
Vector<const ZoneEvent*> m_zoneInfoStack;
Vector<const GpuEvent*> m_gpuInfoStack;