mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 18:28:10 +00:00
ProcessManager: Add a new per-proces "open files" view showing open FDs
This uses the data from /proc/PID/fds with ease now that it's JSON. :^)
This commit is contained in:
parent
45c5a91afc
commit
8a703c0076
6 changed files with 153 additions and 0 deletions
18
Applications/ProcessManager/ProcessFileDescriptorMapWidget.h
Normal file
18
Applications/ProcessManager/ProcessFileDescriptorMapWidget.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
#pragma once
|
||||
|
||||
#include <LibGUI/GWidget.h>
|
||||
|
||||
class GTableView;
|
||||
|
||||
class ProcessFileDescriptorMapWidget final : public GWidget {
|
||||
C_OBJECT(ProcessFileDescriptorMapWidget);
|
||||
public:
|
||||
explicit ProcessFileDescriptorMapWidget(GWidget* parent);
|
||||
virtual ~ProcessFileDescriptorMapWidget() 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