Skip to content

Commit 5a7d8a7

Browse files
committed
update ci, readme
1 parent 83fd8f6 commit 5a7d8a7

File tree

4 files changed

+27
-33
lines changed

4 files changed

+27
-33
lines changed

.github/workflows/publish-laperf-power.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
name: Publish laperf-power to PyPI
22

33
on:
4-
release:
5-
types: [published]
4+
push:
65
branches:
76
- main
7+
paths:
8+
- 'laperf-power/pyproject.toml'
9+
- 'laperf-power/src/**'
10+
release:
11+
types: [published]
812
workflow_dispatch:
913
inputs:
1014
test_pypi:
@@ -45,7 +49,7 @@ jobs:
4549

4650
publish-to-pypi:
4751
name: Publish laperf-power to PyPI
48-
if: github.event_name == 'release' && github.event.action == 'published'
52+
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || (github.event_name == 'release' && github.event.action == 'published')
4953
needs:
5054
- build
5155
runs-on: ubuntu-latest

laperf-power/README.md

Lines changed: 18 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,11 @@ laperf-power --output power_metrics.json
7575

7676
## Example Output
7777

78+
### Real-time Monitoring
79+
7880
```
79-
⚡ REAL-TIME POWER MONITORING
81+
================================================================================
82+
REAL-TIME POWER MONITORING
8083
================================================================================
8184
Started: 2025-11-27 14:30:00
8285
Interval: 10.0s
@@ -87,42 +90,29 @@ Press Ctrl+C to stop and view statistics
8790
[Sample #42] GPU: 11.7W 32% 8.2GB | CPU: 15% 1.0W | RAM: 16.3GB | Temp: 45°C
8891
```
8992

90-
**Final statistics:**
93+
### Final Statistics
9194

9295
```
93-
📊 MONITORING SUMMARY
96+
================================================================================
97+
MONITORING SUMMARY
9498
================================================================================
9599
96100
Duration: 420.0s
97101
Samples collected: 42
98102
99-
🎮 GPU Power:
100-
P50: 11.7W
101-
P95: 13.2W
102-
103-
💻 CPU Power:
104-
P50: 1.0W
105-
P95: 1.5W
103+
Metric | P50 | P95
104+
-----------------------------------------
105+
GPU Power | 11.70W | 13.20W
106+
CPU Power | 1.00W | 1.50W
107+
GPU Utilization | 32% | 45%
108+
GPU VRAM | 8.20GB | 8.50GB
109+
CPU Utilization | 15% | 22%
110+
RAM Usage | 16.30GB | 16.70GB
111+
GPU Temperature | 45°C | 48°C
106112
107-
🎯 GPU Utilization:
108-
P50: 32%
109-
P95: 45%
113+
Battery: 85.0% → 83.5% (drain: 1.5%)
110114
111-
💾 GPU VRAM:
112-
P50: 8.2GB
113-
P95: 8.5GB
114-
115-
🔧 CPU Utilization:
116-
P50: 15%
117-
P95: 22%
118-
119-
🧠 RAM Usage:
120-
P50: 16.3GB
121-
P95: 16.7GB
122-
123-
🔋 Battery:
124-
Start: 85.0% → End: 83.5%
125-
Drain: 1.5%
115+
================================================================================
126116
```
127117

128118
## macOS sudo Setup (Optional)

laperf-power/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "laperf-power"
7-
version = "0.1.2"
7+
version = "0.1.3"
88
description = "Lightweight real-time power and resource monitoring tool for AI workloads"
99
readme = "README.md"
1010
requires-python = ">=3.10"

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "laperf"
7-
version = "0.1.2"
7+
version = "0.1.3"
88
description = "Local AI Performance Benchmark Suite - Reproducible AI hardware benchmarks with real-time power monitoring"
99
readme = "README.md"
1010
requires-python = ">=3.12"

0 commit comments

Comments
 (0)