# prabhkalraa/system-performance-analyzer architecture

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

- Interactive diagram: https://gitdiagram.com/prabhkalraa/system-performance-analyzer
- Repository: https://github.com/prabhkalraa/system-performance-analyzer

## Overview

System Performance Analyzer is a family of standalone Tkinter desktop implementations for viewing live system performance and managing processes. The main user workflow is to open an analyzer, collect system metrics, and inspect them in dashboards and graphs; other documented capabilities include alerts, system information, and report export. The four large Python files appear to be separate implementations, not modules that call one another. Edges between distinct responsibilities are included only where excerpts or the README support them; unsampled wiring is omitted or marked unverified.

Main entry points: [`code/UI.py`](https://github.com/prabhkalraa/system-performance-analyzer/blob/main/code/UI.py) (Analyzer UI), [`code/p3.py`](https://github.com/prabhkalraa/system-performance-analyzer/blob/main/code/p3.py) (Analyzer p3), [`code/final.py`](https://github.com/prabhkalraa/system-performance-analyzer/blob/main/code/final.py) (Enhanced analyzer), [`code/UI2.py`](https://github.com/prabhkalraa/system-performance-analyzer/blob/main/code/UI2.py) (Metric graphs)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_apps["Desktop applications"]
  node_ui_app["Analyzer UI<br/>[UI.py]"]
  node_ui2_app["Analyzer UI 2<br/>[UI2.py]"]
  node_p3_app["Analyzer p3<br/>[p3.py]"]
  node_final_app["Enhanced analyzer<br/>[final.py]"]
end

subgraph group_monitoring["Monitoring and display"]
  node_metrics["System metrics<br/>[UI.py]"]
  node_charts["Metric graphs<br/>[UI2.py]"]
  node_live_ui["Live dashboard<br/>[p3.py]"]
end

subgraph group_operations["Analysis and operations"]
  node_processes["Process manager<br/>[UI.py]"]
  node_system_info["System information<br/>[UI.py]"]
  node_optimization["Optimization analysis<br/>[UI.py]"]
  node_alerts_reports["Alerts and reports<br/>[p3.py]"]
  node_enhanced_analysis["Enhanced analysis<br/>[final.py]"]
end

node_user(("Desktop user"))

node_user -.->|"opens"| node_ui_app
node_user -.->|"opens"| node_ui2_app
node_user -.->|"opens"| node_p3_app
node_user -.->|"opens"| node_final_app
node_metrics -->|"updates"| node_live_ui
node_charts -->|"renders"| node_live_ui
node_ui_app -->|"provides"| node_processes
node_ui_app -->|"provides"| node_system_info
node_ui_app -->|"provides"| node_optimization
node_p3_app -->|"provides"| node_alerts_reports
node_final_app -.->|"provides"| node_enhanced_analysis

click node_ui_app "https://github.com/prabhkalraa/system-performance-analyzer/blob/main/code/UI.py"
click node_ui2_app "https://github.com/prabhkalraa/system-performance-analyzer/blob/main/code/UI2.py"
click node_p3_app "https://github.com/prabhkalraa/system-performance-analyzer/blob/main/code/p3.py"
click node_final_app "https://github.com/prabhkalraa/system-performance-analyzer/blob/main/code/final.py"
click node_metrics "https://github.com/prabhkalraa/system-performance-analyzer/blob/main/code/UI.py"
click node_charts "https://github.com/prabhkalraa/system-performance-analyzer/blob/main/code/UI2.py"
click node_live_ui "https://github.com/prabhkalraa/system-performance-analyzer/blob/main/code/p3.py"
click node_processes "https://github.com/prabhkalraa/system-performance-analyzer/blob/main/code/UI.py"
click node_system_info "https://github.com/prabhkalraa/system-performance-analyzer/blob/main/code/UI.py"
click node_optimization "https://github.com/prabhkalraa/system-performance-analyzer/blob/main/code/UI.py"
click node_alerts_reports "https://github.com/prabhkalraa/system-performance-analyzer/blob/main/code/p3.py"
click node_enhanced_analysis "https://github.com/prabhkalraa/system-performance-analyzer/blob/main/code/final.py"

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_ui_app,node_ui2_app,node_p3_app,node_final_app,node_user toneBlue
class node_metrics,node_charts,node_live_ui toneAmber
class node_processes,node_system_info,node_optimization,node_alerts_reports,node_enhanced_analysis toneMint
```

## Components

### Desktop applications

- [Analyzer UI](https://github.com/prabhkalraa/system-performance-analyzer/blob/main/code/UI.py): `code/UI.py`
- [Analyzer UI 2](https://github.com/prabhkalraa/system-performance-analyzer/blob/main/code/UI2.py): `code/UI2.py`
- [Analyzer p3](https://github.com/prabhkalraa/system-performance-analyzer/blob/main/code/p3.py): `code/p3.py`
- [Enhanced analyzer](https://github.com/prabhkalraa/system-performance-analyzer/blob/main/code/final.py): `code/final.py`

### Monitoring and display

- [System metrics](https://github.com/prabhkalraa/system-performance-analyzer/blob/main/code/UI.py): `code/UI.py`
- [Metric graphs](https://github.com/prabhkalraa/system-performance-analyzer/blob/main/code/UI2.py): `code/UI2.py`
- [Live dashboard](https://github.com/prabhkalraa/system-performance-analyzer/blob/main/code/p3.py): `code/p3.py`

### Analysis and operations

- [Process manager](https://github.com/prabhkalraa/system-performance-analyzer/blob/main/code/UI.py): `code/UI.py`
- [System information](https://github.com/prabhkalraa/system-performance-analyzer/blob/main/code/UI.py): `code/UI.py`
- [Optimization analysis](https://github.com/prabhkalraa/system-performance-analyzer/blob/main/code/UI.py): `code/UI.py`
- [Alerts and reports](https://github.com/prabhkalraa/system-performance-analyzer/blob/main/code/p3.py): `code/p3.py`
- [Enhanced analysis](https://github.com/prabhkalraa/system-performance-analyzer/blob/main/code/final.py): `code/final.py`

### Other components

- **Desktop user**

## Connections

- Desktop user → Analyzer UI: opens
- Desktop user → Analyzer UI 2: opens
- Desktop user → Analyzer p3: opens
- Desktop user → Enhanced analyzer: opens
- System metrics → Live dashboard: updates (evidence: `code/p3.py`)
- Metric graphs → Live dashboard: renders (evidence: `code/UI2.py`)
- Analyzer UI → Process manager: provides (evidence: `README.md`)
- Analyzer UI → System information: provides (evidence: `README.md`)
- Analyzer UI → Optimization analysis: provides (evidence: `README.md`)
- Analyzer p3 → Alerts and reports: provides (evidence: `README.md`)
- Enhanced analyzer → Enhanced analysis: provides (evidence: `code/final.py`)
