pi-time-stats0.2.6
Per-call time + token stats for Pi TUI: /timestats slowest-call table plus live widget
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
pi-time-stats
Per-call time + token stats for the Pi TUI. One row per tool call — bash npm install and bash python -m main.py show as separate rows.
Install
pi install npm:pi-time-stats
# or from git:
pi install git:github.com/YOURNAME/pi-time-stats@v0.1.0
Use
/timestats [n]— slowest tool calls this session (default 10). Time on the left, tool call gets the rest of the line. Nested calls excluded with a count.- In the overlay:
↑↓move,Enterexpands a row to full multiline detail,qcloses. - Live widget above the editor:
last: bash 3.2s | session tools 84s | tokens ~152k.
Stats persist as session custom entries, so /reload keeps history.
Notes
- Time measured with
performance.now()betweentool_execution_start/tool_execution_end. - Token totals come from per-message
usage; per-call output sizes are character counts labeled~. - Stats reset on session switch. Never logged, never sent to the model.