serenity/Applications/ProcessManager/ProcessMemoryMapWidget.h
Andreas Kling cf57d64481 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. :^)
2019-07-28 12:15:24 +02:00

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 };
};