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

Calculate jump table.

This commit is contained in:
Bartosz Taudul
2020-04-04 02:25:12 +02:00
parent 27c125f23b
commit 3711a66592
2 changed files with 86 additions and 0 deletions
+12
View File
@@ -4,6 +4,7 @@
#include <string>
#include <vector>
#include "tracy_robin_hood.h"
#include "TracyDecayValue.hpp"
struct ImFont;
@@ -29,6 +30,14 @@ class SourceView
std::string operands;
};
struct JumpData
{
uint64_t min;
uint64_t max;
int level;
std::vector<uint64_t> source;
};
public:
SourceView( ImFont* font );
~SourceView();
@@ -61,6 +70,9 @@ private:
std::vector<Line> m_lines;
std::vector<AsmLine> m_asm;
unordered_flat_map<uint64_t, JumpData> m_jumpTable;
int m_maxJumpLevel;
};
}