A utility toolkit for profiling, checking, and analyzing web request execution. Log profiling runs, analyze performance data, generate reports, and export results — all from the command line.
All commands accept optional <input> arguments. Without arguments, they display recent entries from their log.
CommandDescriptionweb-profiler run <input>Run a profiling task and log the resultweb-profiler check <input>Check a configuration, endpoint, or dependencyweb-profiler convert <input>Convert profiling data between formatsweb-profiler analyze <input>Analyze request timing, memory, or query dataweb-profiler generate <input>Generate profiling configurations or templatesweb-profiler preview <input>Preview profiling output before committingweb-profiler batch <input>Batch process multiple profiling tasksweb-profiler compare <input>Compare two profiling results side by sideweb-profiler export <input>Log an export operationweb-profiler config <input>Log or update configuration entriesweb-profiler status <input>Log a status check resultweb-profiler report <input>Generate or log a report entryweb-profiler statsShow summary statistics across all log filesweb-profiler export json|csv|txtExport all data in JSON, CSV, or plain text formatweb-profiler search <term>Search across all log entries for a keywordweb-profiler recentShow the 20 most recent activity entriesweb-profiler helpShow all available commandsweb-profiler versionPrint version (v2.0.0)
All data is stored locally in ~/.local/share/web-profiler/. Each command maintains its own .log file with timestamped entries in YYYY-MM-DD HH:MM|value format. A unified history.log tracks all operations across commands.
Export formats supported:
type, time, and value fieldstype,time,value headerset -euo pipefail (strict mode)date, wc, du, grep, tail, sed, catanalyze and compare to record performance investigationsbash
# Run a profiling task
web-profiler run "GET /api/users — 342ms, 12MB memory"
# Analyze query performance
web-profiler analyze "SELECT * FROM orders — 89ms, 1.2k rows"
# Compare two profiling runs
web-profiler compare "v2.1 vs v2.2: 15% latency reduction"
# Search for previous profiling entries
web-profiler search "memory"
# Export all profiling data to CSV
web-profiler export csv
# View summary statistics
web-profiler stats
Web Profiler stores all data locally in ~/.local/share/web-profiler/. Each command creates a dedicated log file (e.g., run.log, analyze.log, report.log). Every entry is timestamped and appended, providing a full audit trail. The history.log file aggregates activity across all commands for unified tracking.
When called without arguments, each command displays its most recent 20 entries, making it easy to review past profiling work without manually inspecting log files.
All output goes to stdout. Redirect to a file with:
bash
web-profiler stats > report.txt
web-profiler export json # writes to ~/.local/share/web-profiler/export.json
Powered by BytesAgain | bytesagain.com | hello@bytesagain.com