Skip to main content

memray

Use this skill when the user wants to profile Python memory usage, find memory leaks, generate flame graphs, or analyze Python application memory behavior.

来源信息

仓库
javimosch/supercli
最近来源活动
2026年6月23日 23:48
检测到的 SKILL.md 语言
英语
星标
51
Forks
7

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
memray
description
Use this skill when the user wants to profile Python memory usage, find memory leaks, generate flame graphs, or analyze Python application memory behavior.
# memray Plugin Memory profiler for Python applications with live flame graphs and reports. ## Commands ### Run - `memray run profile` — Profile a Python script ### Flamegraph - `memray flamegraph generate` — Generate a flame graph from a snapshot ### Table - `memray table generate` — Generate a table report from a snapshot ## Usage Examples - "Profile this Python script for memory usage" - "Generate a flame graph from the memory snapshot" - "Show memory allocations in a table" ## Installation ```bash pip install memray ``` ## Examples ```bash # Profile a script memray run my_script.py # Profile and generate live flamegraph memray run --live my_script.py # Generate flame graph from snapshot memray flamegraph output.bin # Generate table report memray table output.bin # Show statistics memray stats output.bin # Track specific function memray run -f my_function my_script.py ```
在 GitHub 查看