Skip to main content

profile

Profile ExecuTorch model execution. Use when measuring performance, analyzing operator timing, or debugging slow models.

Source facts

Repository
pytorch/executorch
Last source activity
February 8, 2026 at 05:21
Detected SKILL.md language
English
Stars
5,164
Forks
1,238

Install options

The review-first prompt is selected by default. You can switch to a direct command or download a local copy.

Review the source files

Read SKILL.md and any companion files shown by SkillsMP before deciding whether to install.

Showing SKILL.md

SKILL.md
Source instructions · Read-only preview
name
profile
description
Profile ExecuTorch model execution. Use when measuring performance, analyzing operator timing, or debugging slow models.
# Profile ## 1. Enable ETDump when loading ```python program = runtime.load_program("model.pte", enable_etdump=True, debug_buffer_size=int(1e7)) ``` ## 2. Execute and save ```python outputs = program.load_method("forward").execute(inputs) program.write_etdump_result_to_file("etdump.etdp", "debug.bin") ``` ## 3. Analyze with Inspector ```python from executorch.devtools import Inspector inspector = Inspector(etrecord="model.etrecord", etdump_path="etdump.etdp") inspector.print_data_tabular() ```
View on GitHub