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:
@@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user