← 返回
未分类 中文

Web Profiler

Provides a development tool that gives detailed information about the execution of any request web profiler bundle, twig, component, dev, php, symfony.
提供开发工具,详尽显示任意请求的执行信息(Web Profiler、Symfony)。
ckchzh ckchzh 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 440
下载
💾 2
安装
1
版本
#latest

概述

Web Profiler

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.

Commands

All commands accept optional arguments. Without arguments, they display recent entries from their log.

CommandDescription
----------------------
web-profiler run Run a profiling task and log the result
web-profiler check Check a configuration, endpoint, or dependency
web-profiler convert Convert profiling data between formats
web-profiler analyze Analyze request timing, memory, or query data
web-profiler generate Generate profiling configurations or templates
web-profiler preview Preview profiling output before committing
web-profiler batch Batch process multiple profiling tasks
web-profiler compare Compare two profiling results side by side
web-profiler export Log an export operation
web-profiler config Log or update configuration entries
web-profiler status Log a status check result
web-profiler report Generate or log a report entry
web-profiler statsShow summary statistics across all log files
`web-profiler export json\csv\txt`Export all data in JSON, CSV, or plain text format
web-profiler search Search across all log entries for a keyword
web-profiler recentShow the 20 most recent activity entries
web-profiler helpShow all available commands
web-profiler versionPrint version (v2.0.0)

Data Storage

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:

  • JSON — Array of objects with type, time, and value fields
  • CSV — Standard comma-separated with type,time,value header
  • TXT — Human-readable grouped by command type

Requirements

  • Bash 4.0+ with set -euo pipefail (strict mode)
  • Standard Unix utilities: date, wc, du, grep, tail, sed, cat
  • No external dependencies — runs on any POSIX-compliant system

When to Use

  1. Profiling web request performance — Log and review timing, memory, and query data for HTTP requests
  2. Debugging slow routes — Use analyze and compare to record performance investigations
  3. Tracking profiling history — Keep a timestamped log of all profiling runs for trend analysis
  4. Generating performance reports — Export accumulated profiling data to JSON/CSV for dashboards
  5. Batch profiling operations — Profile multiple endpoints in one session and review results later

Examples

# 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

How It Works

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.

Output

All output goes to stdout. Redirect to a file with:

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

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 23:57 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 679 📥 327,813
dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 72 📥 181,970
professional

Legal Advisor

ckchzh
生成劳动、消费、租赁及交通纠纷法律模板,适用于撰写纠纷信函、审查租户权利、准备索赔等。
★ 4 📥 4,124