mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 13:37:43 +00:00

To start out, add a "Stacks" view where we see what the selected process is currently doing (via /proc/PID/stack) :^)
21 lines
441 B
C++
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 };
|
|
};
|