1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:17:36 +00:00

ProcessManager: Add a "Memory map" view to show a process's VM layout.

Fetch all the data from /proc/PID/vm for the selected process and show it
in a nice GTableView. :^)
This commit is contained in:
Andreas Kling 2019-07-28 12:15:24 +02:00
parent 52a5e34902
commit cf57d64481
6 changed files with 181 additions and 0 deletions

View file

@ -0,0 +1,18 @@
#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 };
};