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:
parent
52a5e34902
commit
cf57d64481
6 changed files with 181 additions and 0 deletions
18
Applications/ProcessManager/ProcessMemoryMapWidget.h
Normal file
18
Applications/ProcessManager/ProcessMemoryMapWidget.h
Normal 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 };
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue