Configs2026年7月3日·1 分钟阅读

Speedscope — Interactive Flame Chart Viewer for Performance Profiles

A fast, web-based viewer for performance profiles that renders flame charts, left-heavy views, and sandwich views from many profiler formats.

Agent 就绪

Agent 可直接安装

这个资产可安装;Agent 先选择当前运行时、检查安装计划,再运行匹配命令。

Native · 98/100策略:允许
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
Speedscope
直接安装命令
npx -y tokrepo@latest install 75a7642f-76db-11f1-9bc6-00163e2b0d79 --target codex

先 dry-run 确认安装计划,再运行此命令。

Introduction

Speedscope is a web-based performance profile viewer that renders interactive flame charts. It supports profiles from dozens of tools across many languages, making it a universal viewer for CPU and memory profiling data. It runs entirely in the browser with no server-side processing.

What Speedscope Does

  • Renders flame charts, left-heavy (aggregated) views, and sandwich views
  • Imports profiles from pprof, perf, Chrome DevTools, Instruments, and many more
  • Provides smooth zooming and panning through large profile datasets
  • Highlights individual functions across all call stacks (sandwich view)
  • Runs entirely client-side with no data uploaded to any server

Architecture Overview

Speedscope is built with TypeScript and WebGL for high-performance rendering. Profile data is parsed client-side from various formats into a normalized internal model. The flame chart renderer uses WebGL to draw thousands of rectangles efficiently, enabling smooth interaction even with millions of samples. All processing happens in the browser.

Self-Hosting & Configuration

  • Use the hosted version at speedscope.app (no install needed)
  • Install the CLI globally with npm install -g speedscope
  • Run speedscope profile.json to open a profile in your default browser
  • Self-host by serving the static build output from any web server
  • Pipe profiler output directly: py-spy record -o profile.json && speedscope profile.json

Key Features

  • Supports 20+ profile formats across Python, Ruby, Go, Node.js, Java, and native code
  • WebGL-based rendering handles profiles with millions of samples smoothly
  • Three complementary views: time-ordered flame chart, left-heavy, and sandwich
  • No data leaves your machine; all processing is client-side
  • Keyboard shortcuts for quick navigation and function search

Comparison with Similar Tools

  • Chrome DevTools — Built into Chrome but limited to Chrome profiles; Speedscope supports many formats
  • Perfetto UI — Powerful trace viewer; Speedscope is lighter and focused on flame charts
  • FlameGraph (Brendan Gregg) — Generates static SVGs; Speedscope provides interactive exploration
  • pprof web UI — Go-specific; Speedscope supports profiles from any language

FAQ

Q: Is my profile data uploaded anywhere? A: No. All processing happens in the browser. Your data never leaves your machine.

Q: What profile formats are supported? A: pprof, Chrome DevTools, Instruments, perf, collapsed stacks, Pyinstrument, VizTracer, and many more.

Q: Can I use it offline? A: Yes. Install via npm and run locally, or download the static build for fully offline use.

Q: How does the sandwich view work? A: It shows a selected function in the center, with callers above and callees below, aggregated across all occurrences.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产