# lucid1o/linux_processmanager architecture

> Architecture diagram of the GitHub repository lucid1o/linux_processmanager, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/lucid1o/linux_processmanager
- Repository: https://github.com/lucid1o/linux_processmanager

## Overview

Pulse is a Linux desktop process manager. A user opens the Qt interface, which presents live system metrics and a hierarchical, application-grouped process view; users can inspect recommendations or explicitly request process termination. The runtime separates UI, core logic, and collection. The graph preserves documented capabilities, including simulation and configurable rules. Source excerpts show startup and interfaces; some internal UI wiring is supported only by the README, so those links cite it rather than implying unsampled calls.

Main entry points: [`ui/src/main_window.cpp`](https://github.com/lucid1o/linux_processmanager/blob/main/ui/src/main_window.cpp) (Main window), [`collector/include/pulse/collector/system_collector.hpp`](https://github.com/lucid1o/linux_processmanager/blob/main/collector/include/pulse/collector/system_collector.hpp) (Collector interface), [`ui/src/dashboard_widget.cpp`](https://github.com/lucid1o/linux_processmanager/blob/main/ui/src/dashboard_widget.cpp) (System dashboard), [`core/src/app_grouper.cpp`](https://github.com/lucid1o/linux_processmanager/blob/main/core/src/app_grouper.cpp) (Application grouper)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Desktop interface"]
  node_window["Main window<br/>[main_window.cpp]"]
  node_dashboard["System dashboard"]
  node_sparkline["Trend graphs"]
  node_tree["Process tree"]
  node_recommendations["Recommendations panel"]
  node_dialogs["Action dialogs<br/>[action_dialogs.cpp]"]
end

subgraph group_core["Process management"]
  node_process_data["Process and metrics model<br/>[process_info.hpp]"]
  node_grouper["Application grouper<br/>[app_grouper.cpp]"]
  node_manager["Process manager"]
  node_rules["Rule engine<br/>[rule_engine.cpp]"]
  node_rule_config["Default rules<br/>[rules.json]"]
end

subgraph group_collection["System collection"]
  node_collector_api["Collector interface"]
  node_linux_collector["Linux proc collector"]
  node_sim_collector["Simulated collector"]
end

subgraph group_system["Linux interfaces"]
  node_procfs["procfs and sysfs"]
  node_controller["Signal controller<br/>[main.cpp]"]
  node_posix["POSIX signals"]
end

node_user(("Desktop user"))

node_user -->|"uses"| node_window
node_window -->|"refreshes metrics"| node_collector_api
node_collector_api -->|"implemented by"| node_linux_collector
node_collector_api -->|"implemented by"| node_sim_collector
node_linux_collector -->|"reads telemetry"| node_procfs
node_window -->|"groups processes"| node_grouper
node_grouper -->|"builds app trees"| node_process_data
node_window -->|"shows hierarchy"| node_tree
node_window -->|"shows metrics"| node_dashboard
node_dashboard -->|"renders trends"| node_sparkline
node_window -->|"evaluates observations"| node_rules
node_rules -.->|"loads rules"| node_rule_config
node_window -->|"shows recommendations"| node_recommendations
node_user -->|"confirms actions"| node_dialogs
node_window -->|"requests termination"| node_manager
node_manager -->|"checks and signals"| node_controller
node_controller -->|"sends signals"| node_posix

click node_window "https://github.com/lucid1o/linux_processmanager/blob/main/ui/src/main_window.cpp"
click node_dashboard "https://github.com/lucid1o/linux_processmanager/blob/main/ui/src/dashboard_widget.cpp"
click node_sparkline "https://github.com/lucid1o/linux_processmanager/blob/main/ui/src/sparkline_widget.cpp"
click node_tree "https://github.com/lucid1o/linux_processmanager/blob/main/ui/src/process_tree_model.cpp"
click node_recommendations "https://github.com/lucid1o/linux_processmanager/blob/main/ui/src/recommendations_panel.cpp"
click node_dialogs "https://github.com/lucid1o/linux_processmanager/blob/main/ui/src/action_dialogs.cpp"
click node_collector_api "https://github.com/lucid1o/linux_processmanager/blob/main/collector/include/pulse/collector/system_collector.hpp"
click node_linux_collector "https://github.com/lucid1o/linux_processmanager/blob/main/collector/src/linux_proc_collector.cpp"
click node_sim_collector "https://github.com/lucid1o/linux_processmanager/blob/main/collector/src/simulated_collector.cpp"
click node_process_data "https://github.com/lucid1o/linux_processmanager/blob/main/core/include/pulse/core/process_info.hpp"
click node_grouper "https://github.com/lucid1o/linux_processmanager/blob/main/core/src/app_grouper.cpp"
click node_manager "https://github.com/lucid1o/linux_processmanager/blob/main/core/src/process_manager.cpp"
click node_controller "https://github.com/lucid1o/linux_processmanager/blob/main/ui/src/main.cpp"
click node_rules "https://github.com/lucid1o/linux_processmanager/blob/main/core/src/rule_engine.cpp"
click node_rule_config "https://github.com/lucid1o/linux_processmanager/blob/main/resources/rules.json"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_window,node_dashboard,node_sparkline,node_tree,node_recommendations,node_dialogs,node_user toneBlue
class node_process_data,node_grouper,node_manager,node_rules,node_rule_config toneAmber
class node_collector_api,node_linux_collector,node_sim_collector toneMint
class node_procfs,node_controller,node_posix toneRose
```

## Components

### Desktop interface

- [Main window](https://github.com/lucid1o/linux_processmanager/blob/main/ui/src/main_window.cpp): `ui/src/main_window.cpp`
- [System dashboard](https://github.com/lucid1o/linux_processmanager/blob/main/ui/src/dashboard_widget.cpp): `ui/src/dashboard_widget.cpp`
- [Trend graphs](https://github.com/lucid1o/linux_processmanager/blob/main/ui/src/sparkline_widget.cpp): `ui/src/sparkline_widget.cpp`
- [Process tree](https://github.com/lucid1o/linux_processmanager/blob/main/ui/src/process_tree_model.cpp): `ui/src/process_tree_model.cpp`
- [Recommendations panel](https://github.com/lucid1o/linux_processmanager/blob/main/ui/src/recommendations_panel.cpp): `ui/src/recommendations_panel.cpp`
- [Action dialogs](https://github.com/lucid1o/linux_processmanager/blob/main/ui/src/action_dialogs.cpp): `ui/src/action_dialogs.cpp`

### Process management

- [Process and metrics model](https://github.com/lucid1o/linux_processmanager/blob/main/core/include/pulse/core/process_info.hpp): `core/include/pulse/core/process_info.hpp`
- [Application grouper](https://github.com/lucid1o/linux_processmanager/blob/main/core/src/app_grouper.cpp): `core/src/app_grouper.cpp`
- [Process manager](https://github.com/lucid1o/linux_processmanager/blob/main/core/src/process_manager.cpp): `core/src/process_manager.cpp`
- [Rule engine](https://github.com/lucid1o/linux_processmanager/blob/main/core/src/rule_engine.cpp): `core/src/rule_engine.cpp`
- [Default rules](https://github.com/lucid1o/linux_processmanager/blob/main/resources/rules.json): `resources/rules.json`

### System collection

- [Collector interface](https://github.com/lucid1o/linux_processmanager/blob/main/collector/include/pulse/collector/system_collector.hpp): `collector/include/pulse/collector/system_collector.hpp`
- [Linux proc collector](https://github.com/lucid1o/linux_processmanager/blob/main/collector/src/linux_proc_collector.cpp): `collector/src/linux_proc_collector.cpp`
- [Simulated collector](https://github.com/lucid1o/linux_processmanager/blob/main/collector/src/simulated_collector.cpp): `collector/src/simulated_collector.cpp`

### Linux interfaces

- **procfs and sysfs**
- [Signal controller](https://github.com/lucid1o/linux_processmanager/blob/main/ui/src/main.cpp): `ui/src/main.cpp`
- **POSIX signals**

### Other components

- **Desktop user**

## Connections

- Desktop user → Main window: uses (evidence: `README.md`)
- Main window → Collector interface: refreshes metrics (evidence: `README.md`)
- Collector interface → Linux proc collector: implemented by
- Collector interface → Simulated collector: implemented by
- Linux proc collector → procfs and sysfs: reads telemetry (evidence: `README.md`)
- Main window → Application grouper: groups processes (evidence: `README.md`)
- Application grouper → Process and metrics model: builds app trees
- Main window → Process tree: shows hierarchy (evidence: `README.md`)
- Main window → System dashboard: shows metrics (evidence: `README.md`)
- System dashboard → Trend graphs: renders trends
- Main window → Rule engine: evaluates observations (evidence: `README.md`)
- Rule engine → Default rules: loads rules
- Main window → Recommendations panel: shows recommendations (evidence: `README.md`)
- Desktop user → Action dialogs: confirms actions (evidence: `README.md`)
- Main window → Process manager: requests termination (evidence: `README.md`)
- Process manager → Signal controller: checks and signals
- Signal controller → POSIX signals: sends signals (evidence: `ui/src/main.cpp`)
