diff options
| author | 2015-04-04 12:57:31 +0200 | |
|---|---|---|
| committer | 2015-07-13 22:27:20 +0200 | |
| commit | 902fa4da52737d43e04c2a028658ad9840811a89 (patch) | |
| tree | 0a2346b4e08b5865c3369247f5720453b170e0c6 /src/citra_qt/debugger/graphics_tracing.h | |
| parent | GPU: Be robust against nullptr addresses; properly reset busy bits in the tri... (diff) | |
| download | yuzu-902fa4da52737d43e04c2a028658ad9840811a89.tar.gz yuzu-902fa4da52737d43e04c2a028658ad9840811a89.tar.xz yuzu-902fa4da52737d43e04c2a028658ad9840811a89.zip | |
Add CiTrace recording support.
This is exposed in the GUI as a new "CiTrace Recording" widget.
Playback is implemented by a standalone 3DS homebrew application (which only runs reliably within Citra currently; on an actual 3DS it will often crash still).
Diffstat (limited to 'src/citra_qt/debugger/graphics_tracing.h')
| -rw-r--r-- | src/citra_qt/debugger/graphics_tracing.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/citra_qt/debugger/graphics_tracing.h b/src/citra_qt/debugger/graphics_tracing.h new file mode 100644 index 000000000..397a7173b --- /dev/null +++ b/src/citra_qt/debugger/graphics_tracing.h | |||
| @@ -0,0 +1,27 @@ | |||
| 1 | // Copyright 2015 Citra Emulator Project | ||
| 2 | // Licensed under GPLv2 or any later version | ||
| 3 | // Refer to the license.txt file included. | ||
| 4 | |||
| 5 | #pragma once | ||
| 6 | |||
| 7 | #include "graphics_breakpoint_observer.h" | ||
| 8 | |||
| 9 | class GraphicsTracingWidget : public BreakPointObserverDock { | ||
| 10 | Q_OBJECT | ||
| 11 | |||
| 12 | public: | ||
| 13 | GraphicsTracingWidget(std::shared_ptr<Pica::DebugContext> debug_context, QWidget* parent = nullptr); | ||
| 14 | |||
| 15 | private slots: | ||
| 16 | void StartRecording(); | ||
| 17 | void StopRecording(); | ||
| 18 | void AbortRecording(); | ||
| 19 | |||
| 20 | void OnBreakPointHit(Pica::DebugContext::Event event, void* data) override; | ||
| 21 | void OnResumed() override; | ||
| 22 | |||
| 23 | signals: | ||
| 24 | void SetStartTracingButtonEnabled(bool enable); | ||
| 25 | void SetStopTracingButtonEnabled(bool enable); | ||
| 26 | void SetAbortTracingButtonEnabled(bool enable); | ||
| 27 | }; | ||