Skip to content

Features: Add thread count, executable path and process uptime - #13

Merged
imsudiproy merged 2 commits into
masterfrom
add-process-uptime
Aug 13, 2026
Merged

Features: Add thread count, executable path and process uptime#13
imsudiproy merged 2 commits into
masterfrom
add-process-uptime

Conversation

@imsudiproy

@imsudiproy imsudiproy commented Aug 13, 2026

Copy link
Copy Markdown
Owner

Summary by CodeRabbit

  • New Features
    • Dashboard displays each process’s executable path, thread count, and uptime.
    • CSV exports include executable paths, thread counts, and uptime alongside existing metrics.
    • Unavailable thread counts are clearly shown as “n/a.”
  • Documentation
    • Updated documentation and examples to describe these process details across dashboards, metrics, CSV exports, and JSON output.
    • Added notes about platform availability and raw uptime/export handling.

@coderabbitai

coderabbitai Bot commented Aug 13, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 80265f7c-d7ab-44d3-80c9-5074a96f1cbc

📥 Commits

Reviewing files that changed from the base of the PR and between 4861a84 and 1eacb65.

📒 Files selected for processing (5)
  • readme.md
  • src/datasources/cpu_mem.rs
  • src/output/csv.rs
  • src/output/tui.rs
  • tests/cpu_mem_tests.rs

📝 Walkthrough

Walkthrough

The process sampler now collects executable paths, thread counts, and uptime. The TUI, CSV output, tests, README, and JSON examples expose these fields with optional-value handling.

Changes

Process metadata flow

Layer / File(s) Summary
Sampling metadata contract
src/datasources/cpu_mem.rs, tests/cpu_mem_tests.rs
ProcessInfo stores executable path, thread count, and uptime. The sampler test validates the new values.
Dashboard and CSV rendering
src/output/tui.rs, src/output/csv.rs
The dashboard formats and displays process metadata. CSV output adds escaped executable paths, optional thread counts, and uptime values.
Documentation and examples
readme.md
The README documents the new fields, output formats, fallback values, platform availability, and JSON examples.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Mergeability Score: ⚪ Minimal · up to 1eacb

This localized feature change has no actionable merge-blocking risk remaining and is merge-ready after normal checks and review.

Possibly related PRs

Suggested labels: enhancement

Sequence Diagram(s)

sequenceDiagram
  participant ProcessSampler
  participant ProcessInfo
  participant TUI
  participant CSVWriter
  ProcessSampler->>ProcessInfo: Collect executable path, thread count, and uptime
  ProcessInfo->>TUI: Provide process metadata
  TUI->>TUI: Format values and fallback labels
  ProcessInfo->>CSVWriter: Provide raw process metadata
  CSVWriter->>CSVWriter: Escape paths and emit optional fields
Loading
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely summarizes the added thread count, executable path, and process uptime features.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch add-process-uptime

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@imsudiproy
imsudiproy merged commit eed1148 into master Aug 13, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant