profile

Profile ExecuTorch model execution with etdump and Inspector for operator timing.

4.9k|1.1k|Updated Feb 25, 2022
One-click install
npx skills add https://github.com/pytorch/executorch --skill profile-pytorch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: profile
Source: https://github.com/pytorch/executorch/tree/main/.claude/skills/profile
Command: npx skills add https://github.com/pytorch/executorch --skill profile-pytorch

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Profile ExecuTorch model execution to measure performance, analyze operator timing, and identify bottlenecks during on-device inference.

Core Features & Use Cases

  • Performance profiling of model execution to quantify throughput and latency on-device.
  • Operator timing analysis to pinpoint slow layers or ops.
  • Debugging slow models by collecting etdump data and inspecting instrumentation results.

Quick Start

Run a profiling session by loading your model with etdump enabled and inspect results with the Inspector.

Frequently Asked Questions about profile

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I profile ExecuTorch model inference latency on mobile devices?

To profile ExecuTorch model inference latency on mobile devices, load your model with etdump enabled and inspect the generated instrumentation results to measure on-device execution time and identify bottlenecks.

What is operator-level timing analysis for on-device execution?

Operator timing analysis for on-device execution measures the execution time of individual layers or operations within a model, enabling developers to pinpoint slow operators during mobile and embedded inference workflows.

How do I debug slow operator performance in ExecuTorch?

Debug slow operator performance in ExecuTorch by enabling etdump during model load to collect timing data, then use the Inspector tool to analyze the operator distribution across layers and pinpoint execution bottlenecks.

Can I measure throughput and latency for embedded device inference?

Yes, you can measure throughput and latency for embedded device inference by profiling model execution, which quantifies performance metrics and presents operator timing results via the Inspector tool.

Do I need etdump enabled to collect execution time metrics?

Yes, you need etdump enabled during model load to collect execution time metrics, as it generates the instrumentation data required by the Inspector tool to present timing insights and identify performance bottlenecks.