Cemu/src/gui/windows/PPCThreadsViewer/DebugPPCThreadsWindow.h
oltolm 2eec6b44c3
Some checks failed
Build check / build (push) Has been cancelled
Generate translation template / generate-pot (push) Has been cancelled
UI: Use wxListView instead of wxListCtrl (#1584)
2025-06-10 08:15:25 +02:00

36 lines
839 B
C++

#pragma once
#include <wx/wx.h>
class DebugPPCThreadsWindow: public wxFrame
{
public:
DebugPPCThreadsWindow(wxFrame& parent);
~DebugPPCThreadsWindow();
void OnCloseButton(wxCommandEvent& event);
void OnRefreshButton(wxCommandEvent& event);
void OnClose(wxCloseEvent& event);
void RefreshThreadList();
void OnThreadListPopupClick(wxCommandEvent &evt);
void OnThreadListRightClick(wxMouseEvent& event);
void Close();
private:
void ProfileThread(struct OSThread_t* thread);
void ProfileThreadWorker(OSThread_t* thread);
void PresentProfileResults(OSThread_t* thread, const std::unordered_map<VAddr, uint32>& samples);
void DumpStackTrace(struct OSThread_t* thread);
wxListView* m_thread_list;
wxCheckBox* m_auto_refresh;
wxTimer* m_timer;
void OnTimer(wxTimerEvent& event);
wxDECLARE_EVENT_TABLE();
};