Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hrydgard
GitHub Repository: hrydgard/ppsspp
Path: blob/master/UI/ImDebugger/ImJitViewer.h
3925 views
1
#pragma once
2
3
#include <cstdint>
4
#include <vector>
5
#include "ext/imgui/imgui.h"
6
7
#include "Core/Debugger/DebugInterface.h"
8
#include "Core/MIPS/JitCommon/JitBlockCache.h"
9
#include "Core/MIPS/IR/IRJit.h"
10
11
struct ImConfig;
12
struct ImControl;
13
14
class ImJitViewerWindow {
15
public:
16
void Draw(ImConfig &cfg, ImControl &control);
17
const char *Title() const {
18
return "JIT Viewer";
19
}
20
21
void GoToBlockAtAddr(u32 addr);
22
23
private:
24
struct CachedBlock {
25
u32 addr;
26
int sizeInBytes;
27
int blockNum;
28
#ifdef IR_PROFILING
29
JitBlockProfileStats profileStats;
30
#endif
31
};
32
std::vector<CachedBlock> blockList_;
33
int curBlockNum_ = -1;
34
35
int lastCpuStepCount_ = -1;
36
int blockSortColumn_ = 0;
37
38
bool refresh_ = false;
39
int core_ = -1;
40
41
ImGuiTableSortSpecs *sortSpecs_ = nullptr;
42
JitBlockDebugInfo debugInfo_;
43
};
44
45