diff --git a/Applications/SystemMonitor/CMakeLists.txt b/Applications/SystemMonitor/CMakeLists.txt index 9f3839d6108..94085253482 100644 --- a/Applications/SystemMonitor/CMakeLists.txt +++ b/Applications/SystemMonitor/CMakeLists.txt @@ -7,8 +7,8 @@ set(SOURCES ProcessFileDescriptorMapWidget.cpp ProcessMemoryMapWidget.cpp ProcessModel.cpp - ProcessStackWidget.cpp ProcessUnveiledPathsWidget.cpp + ThreadStackWidget.cpp ) serenity_bin(SystemMonitor) diff --git a/Applications/SystemMonitor/ProcessStackWidget.cpp b/Applications/SystemMonitor/ThreadStackWidget.cpp similarity index 91% rename from Applications/SystemMonitor/ProcessStackWidget.cpp rename to Applications/SystemMonitor/ThreadStackWidget.cpp index 884c7401709..3b7e677192c 100644 --- a/Applications/SystemMonitor/ProcessStackWidget.cpp +++ b/Applications/SystemMonitor/ThreadStackWidget.cpp @@ -24,13 +24,13 @@ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include "ProcessStackWidget.h" +#include "ThreadStackWidget.h" #include #include #include #include -ProcessStackWidget::ProcessStackWidget() +ThreadStackWidget::ThreadStackWidget() { set_layout(); layout()->set_margins({ 4, 4, 4, 4 }); @@ -40,11 +40,11 @@ ProcessStackWidget::ProcessStackWidget() m_timer = add(1000, [this] { refresh(); }); } -ProcessStackWidget::~ProcessStackWidget() +ThreadStackWidget::~ThreadStackWidget() { } -void ProcessStackWidget::set_ids(pid_t pid, pid_t tid) +void ThreadStackWidget::set_ids(pid_t pid, pid_t tid) { if (m_pid == pid && m_tid == tid) return; @@ -53,7 +53,7 @@ void ProcessStackWidget::set_ids(pid_t pid, pid_t tid) refresh(); } -void ProcessStackWidget::refresh() +void ThreadStackWidget::refresh() { auto file = Core::File::construct(String::format("/proc/%d/stacks/%d", m_pid, m_tid)); if (!file->open(Core::IODevice::ReadOnly)) { diff --git a/Applications/SystemMonitor/ProcessStackWidget.h b/Applications/SystemMonitor/ThreadStackWidget.h similarity index 91% rename from Applications/SystemMonitor/ProcessStackWidget.h rename to Applications/SystemMonitor/ThreadStackWidget.h index 08c9f427c50..5a10e93b0af 100644 --- a/Applications/SystemMonitor/ProcessStackWidget.h +++ b/Applications/SystemMonitor/ThreadStackWidget.h @@ -29,16 +29,16 @@ #include #include -class ProcessStackWidget final : public GUI::Widget { - C_OBJECT(ProcessStackWidget) +class ThreadStackWidget final : public GUI::Widget { + C_OBJECT(ThreadStackWidget) public: - virtual ~ProcessStackWidget() override; + virtual ~ThreadStackWidget() override; void set_ids(pid_t pid, pid_t tid); void refresh(); private: - ProcessStackWidget(); + ThreadStackWidget(); pid_t m_pid { -1 }; pid_t m_tid { -1 }; diff --git a/Applications/SystemMonitor/main.cpp b/Applications/SystemMonitor/main.cpp index 19fb27dcf75..de5fd827ea1 100644 --- a/Applications/SystemMonitor/main.cpp +++ b/Applications/SystemMonitor/main.cpp @@ -31,7 +31,7 @@ #include "ProcessFileDescriptorMapWidget.h" #include "ProcessMemoryMapWidget.h" #include "ProcessModel.h" -#include "ProcessStackWidget.h" +#include "ThreadStackWidget.h" #include "ProcessUnveiledPathsWidget.h" #include #include @@ -316,7 +316,7 @@ int main(int argc, char** argv) auto& memory_map_widget = process_tab_widget.add_tab("Memory map"); auto& open_files_widget = process_tab_widget.add_tab("Open files"); auto& unveiled_paths_widget = process_tab_widget.add_tab("Unveiled paths"); - auto& stack_widget = process_tab_widget.add_tab("Stack"); + auto& stack_widget = process_tab_widget.add_tab("Stack"); process_table_view.on_selection = [&](auto&) { auto pid = selected_id(ProcessModel::Column::PID);