mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 18:02:05 -05:00
cf57d64481
Fetch all the data from /proc/PID/vm for the selected process and show it in a nice GTableView. :^)
18 lines
369 B
C++
18 lines
369 B
C++
#pragma once
|
|
|
|
#include <LibGUI/GWidget.h>
|
|
|
|
class GTableView;
|
|
|
|
class ProcessMemoryMapWidget final : public GWidget {
|
|
C_OBJECT(ProcessMemoryMapWidget);
|
|
public:
|
|
explicit ProcessMemoryMapWidget(GWidget* parent);
|
|
virtual ~ProcessMemoryMapWidget() override;
|
|
|
|
void set_pid(pid_t);
|
|
|
|
private:
|
|
GTableView* m_table_view { nullptr };
|
|
pid_t m_pid { -1 };
|
|
};
|