mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-05 09:52:54 +00:00
SystemMonitor: Add an "Unveiled paths" section to the per-process tabs
This shows the data from /proc/PID/unveil in a nice table view. :^)
This commit is contained in:
parent
17e5fc301b
commit
d8357ceb26
Notes:
sideshowbarker
2024-07-19 09:55:59 +09:00
Author: https://github.com/awesomekling
Commit: d8357ceb26
4 changed files with 107 additions and 0 deletions
|
@ -33,6 +33,7 @@
|
|||
#include "ProcessModel.h"
|
||||
#include "ProcessStacksWidget.h"
|
||||
#include "ProcessTableView.h"
|
||||
#include "ProcessUnveiledPathsWidget.h"
|
||||
#include <LibCore/CTimer.h>
|
||||
#include <LibDraw/PNGLoader.h>
|
||||
#include <LibGUI/GAboutDialog.h>
|
||||
|
@ -213,6 +214,9 @@ int main(int argc, char** argv)
|
|||
auto open_files_widget = ProcessFileDescriptorMapWidget::construct(nullptr);
|
||||
process_tab_widget->add_widget("Open files", open_files_widget);
|
||||
|
||||
auto unveiled_paths_widget = ProcessUnveiledPathsWidget::construct(nullptr);
|
||||
process_tab_widget->add_widget("Unveiled paths", unveiled_paths_widget);
|
||||
|
||||
auto stacks_widget = ProcessStacksWidget::construct(nullptr);
|
||||
process_tab_widget->add_widget("Stacks", stacks_widget);
|
||||
|
||||
|
@ -220,6 +224,7 @@ int main(int argc, char** argv)
|
|||
open_files_widget->set_pid(pid);
|
||||
stacks_widget->set_pid(pid);
|
||||
memory_map_widget->set_pid(pid);
|
||||
unveiled_paths_widget->set_pid(pid);
|
||||
};
|
||||
|
||||
window->show();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue