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

Display instruction pointer counts in source view.

This commit is contained in:
Bartosz Taudul
2020-03-25 01:09:02 +01:00
parent c603eaa1b6
commit eae664bd1b
3 changed files with 81 additions and 9 deletions
+4 -2
View File
@@ -5,6 +5,8 @@ struct ImFont;
namespace tracy
{
class Worker;
class SourceView
{
struct Line
@@ -18,10 +20,10 @@ public:
~SourceView();
void Open( const char* fileName, int line, uint64_t symAddr );
void Render();
void Render( const Worker& worker );
private:
void RenderLine( const Line& line, int lineNum );
void RenderLine( const Line& line, int lineNum, uint32_t ipcnt, uint32_t iptotal );
ImFont* m_font;
const char* m_file;