1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-24 13:37:43 +00:00
serenity/Applications/ProcessManager/ProcessStacksWidget.h
Andreas Kling 9b7e1eb287 ProcessManager: Add a process-specific tab view below the process table.
To start out, add a "Stacks" view where we see what the selected process is
currently doing (via /proc/PID/stack) :^)
2019-07-27 09:39:43 +02:00

21 lines
441 B
C++

#pragma once
#include <LibGUI/GTextEditor.h>
#include <LibGUI/GWidget.h>
class CTimer;
class ProcessStacksWidget final : public GWidget {
C_OBJECT(ProcessStacksWidget)
public:
explicit ProcessStacksWidget(GWidget* parent);
virtual ~ProcessStacksWidget() override;
void set_pid(pid_t);
void refresh();
private:
pid_t m_pid { -1 };
GTextEditor* m_stacks_editor { nullptr };
CTimer* m_timer { nullptr };
};