mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-07-11 01:25:07 +02:00
40 lines
700 B
C++
40 lines
700 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <vector>
|
|
#include "ext/imgui/imgui.h"
|
|
|
|
#include "Core/Debugger/DebugInterface.h"
|
|
#include "Core/MIPS/JitCommon/JitBlockCache.h"
|
|
|
|
struct ImConfig;
|
|
struct ImControl;
|
|
|
|
class ImJitViewerWindow {
|
|
public:
|
|
void Draw(ImConfig &cfg, ImControl &control);
|
|
const char *Title() const {
|
|
return "JIT Viewer";
|
|
}
|
|
|
|
void GoToBlockAtAddr(u32 addr);
|
|
|
|
private:
|
|
struct CachedBlock {
|
|
u32 addr;
|
|
int sizeInBytes;
|
|
int blockNum;
|
|
};
|
|
std::vector<CachedBlock> blockList_;
|
|
int curBlockNum_ = -1;
|
|
|
|
int lastCpuStepCount_ = -1;
|
|
int blockSortColumn_ = 0;
|
|
|
|
bool refresh_ = false;
|
|
int core_ = -1;
|
|
|
|
ImGuiTableSortSpecs *sortSpecs_ = nullptr;
|
|
JitBlockDebugInfo debugInfo_;
|
|
};
|