This document is relevant for: Inf2, Trn1, Trn2, Trn3
Neuron Explorer UI overview#
This page provides a guided tour of the Neuron Explorer UI. For each viewer and tool, you’ll find what it does and when to use it, grouped by workflow.
Neuron Explorer is available as a browser UI, a VS Code extension, and a CLI. The viewers below cover the browser and VS Code UIs. For CLI-only workflows, see Get started with Neuron Explorer.
Performance overview and triage#
Start with these viewers when you open a profile for the first time. They give you a high-level picture before you drill into details.
Summary Viewer#
Shows key performance metrics (MFU, HFU, HBU, MBU, compute/memory utilization), performance insights with ranked recommendations, FLOP utilization breakdowns by engine, DMA utilization, memory bandwidth breakdown, collective operation durations, and NKI instruction coverage. Use it to quickly identify the top bottleneck and get actionable next steps.
When to use: First thing after loading a profile — identify the top bottleneck and decide where to focus.
Learn more: Summary Viewer
Region Highlighter#
Automatically identifies and marks time regions in your profile based on collective
operations, operation hierarchy, or kernel stack frames. Also displays NKI Regions
defined in your kernel source code via profiler_region_open / profiler_region_close.
The Summary Viewer then shows comparative metrics for each region so you can compare
layers or kernels without placing manual annotations.
When to use: When you need to compare performance across model layers, kernels, or collective boundaries without manually annotating the timeline.
Learn more: Region Highlighter
AI Recommendation Viewer#
Provides AI-powered bottleneck analysis and optimization recommendations for NKI kernel profiles. Each report ranks 2–3 optimization opportunities by effort and impact, with quantified metrics, implementation guidance, and expected speedup. Requires Amazon Bedrock (opt-in, billed to your account).
When to use: After profiling an NKI kernel — get specific optimization suggestions without deep manual analysis.
Learn more: AI Recommendation Viewer
Timeline analysis#
Use these viewers to understand execution flow over time at both the hardware and system levels.
Device Trace Viewer#
Displays hardware instruction-level execution on a NeuronCore as an interactive timeline. Shows compute engine instructions, DMA operations, HFU/memory utilization over time. Supports hover details, color-coding by PyTorch operator, panning, and zooming. The core viewer for device-level performance analysis.
When to use: Investigate hardware-level behavior — identify stalls, DMA/compute overlap, and instruction-level bottlenecks.
Learn more: Device Trace Viewer
System Trace Viewer#
Shows system-level execution across instances and workers — Neuron Runtime API calls,
framework function calls (PyTorch/JAX), host-device transfers, and HBM memory usage
over time. Supports multiple grouping modes (CPU vs Device, NeuronCore, Thread,
Process, Instance) and links nc_exec_running events to the Device Trace Viewer.
When to use: Investigate distributed workload behavior, host-device data transfer bottlenecks, or framework overhead.
Learn more: System Profile
Unified Trace Viewer (Developer Preview)#
Combines the System Trace Viewer, Device Trace Viewer, and Hierarchy Viewer into one widget with a single clock-synchronized time axis. Tracks are grouped by instance, process, and event source, and each process’s device profiles appear below its framework, runtime, and hardware events. The Unified Trace Viewer is in Developer Preview in this release. Enable it from the announcement or Settings, or add it with Add Widget.
The Unified Trace Viewer enables performance engineers to trace a performance gap end to end, from a framework operation or runtime call down to the instructions, DMA, and collectives that ran on the device at the same time.
Learn more: Unified Trace Viewer (Developer Preview)
Hierarchy Viewer#
Displays execution organized by framework layers, HLO operations, and NKI kernel calls. You can progressively drill down from model-level constructs to hardware instructions. Right-click an operator to highlight its corresponding instructions in the Device Trace Viewer.
When to use: Map high-level model operations to their hardware execution — find which layer or operator is responsible for a performance issue.
Learn more: Hierarchy Viewer
Dependency Chain Viewer#
Shows what a clicked instruction or system event depends on and what depends on it. For a device instruction, build a chain of dependencies one step at a time to find where an engine waited. For a system event, follow its flows from framework calls through the runtime to hardware execution.
When to use: Trace the causal chain of a slow event — understand what triggered it and what it blocks.
Learn more: Dependency Chain Viewer
Data inspection and querying#
Use these viewers to examine specific data — tensors, memory, or raw tables — in detail.
Tensor Viewer#
Lists all tensors in the NEFF file with their names, types (input/output/weight), shapes, sizes, and SBUF loading statistics (DMA count, repeat factor, average/total bytes). Enter a tensor name in the search bar to find all related DMA instructions in the Device Trace Viewer.
When to use: Verify tensors are loaded efficiently, find specific tensor DMA patterns, or cross-reference tensor names with device-level operations.
Learn more: Tensor Viewer
Memory Viewer#
Visualizes memory allocation patterns across SBUF partitions over time. Hover over allocations to see timing, addresses, opcodes, and DMA queue info. Use it to identify memory fragmentation and spill/reload opportunities.
When to use: Debug memory fragmentation, analyze spill/reload patterns, or verify memory compactness for NKI kernel optimization.
Learn more: Memory Viewer
Code correlation#
Use these viewers to link profiling data back to your source code.
Source Code Viewer#
Links NKI/PyTorch source code and hardware instructions bidirectionally:
In the Device Trace Viewer, Ctrl+click an event to open the Source Code Viewer at the corresponding source line.
In the Source Code Viewer, click a line of code to highlight all linked events in the Device Trace Viewer.
When to use: Trace a performance issue back to the exact source code line, or find the hardware behavior of a specific code region.
Learn more: Source Code Viewer
Measurement and comparison#
Use these tools to measure, annotate, and compare specific regions of a profile.
Annotations#
Right-click the Device Trace Viewer to place annotation markers. Annotations snap to events and display time differences and summary metrics between any two markers. You can save and load annotations for collaboration.
When to use: Mark specific regions for measurement, compare before/after, or share specific profile views with teammates.
Learn more: Device Trace Viewer (Annotations section)
Operator Table#
Aggregates hardware metrics into framework layers and operations (MFU, data movement). Expand rows to drill into nested operators. You can sort and filter columns for streamlined viewing.
When to use: Compare per-operator performance metrics across your model’s layers without manually selecting timeline regions.
Learn more: Device Trace Viewer (Operator Table section)
Workspace and layout#
Customize your profiling workflow with these features.
Layout customization#
Add widgets to your workspace — drag, resize, and arrange them freely. Widgets include the Device Trace Viewer, System Trace Viewer, Search, Event Details, and more. Save named layouts and reload them across profiles for a consistent workflow.
Different questions need different views, and the right arrangement puts the views you are comparing next to each other. For example, place the Device Trace Viewer beside Event Details so that the details of each instruction you click appear without hiding the timeline.
Select Add Widget, or press Cmd/Ctrl + K, to open a widget. Drag a widget’s tab to an edge of the workspace to split it into another panel group, and drag tabs between panel groups to stack them. When one workspace gets crowded, spread widgets over several layout pages, and open more than one copy of the same widget to compare two views of the same kind.
A saved layout keeps your layout pages, every copy of every widget, and each widget’s group. Neuron Explorer fills in the profile as the layout loads, so one layout works across profiles.
Note
Some widgets work only with one type of profile: device, system, or hierarchy. For example, device-only widgets are available in a system profile only when it has linked device profiles. When you load a layout that holds widgets the current profile can’t show, Neuron Explorer leaves those widgets out and shows a warning that lists them.
When to use: Set up your workspace once for a specific workflow (e.g., NKI debugging, distributed profiling) and reuse it.
Widget groups#
By default, widgets react to what you do in the others: for example, click an instruction in a timeline, and Event Details switches to that instruction. That is what you want for a single investigation, but not when you are running two at once. Widget groups let you split your workspace into independent sets of widgets, so that a click in one set doesn’t change what the other set shows.
When to use: Put a timeline and the widgets that should follow it in one group, and an independent set in another, for example to keep the details of one instruction on screen while you explore a different part of the profile.
A widget group is a communication channel between widgets, shown as a color on each widget’s tab. Widgets in the same group react to each other’s clicks, selections, and hovers. Widgets in different groups ignore each other.
Choose the group for a new widget from the Groups swatches in Add Widget, and select + to create a group in a new color.
To move a widget that is already open, select the group icon (Edit Widget Groups) in the top right of its panel group’s tab bar, choose a color for each widget, and select Done.
A group closes when its last widget does. To keep empty groups, open Settings, choose Workspace settings, and turn off Auto-close empty widget groups.
Multiple copies of a widget#
Open the same widget more than once to put two views of the same kind side by side. There are two common cases:
Two parts of the same profile — for example, two copies of the Device Trace Viewer on one profile, one zoomed to the first iteration and one to the last.
Two different profiles — for example, a profile from before an optimization and one from after it. Point each copy at a different profile with the profile dropdown in its toolbar. For a dedicated side-by-side comparison of two or more device profiles, you can also use Profile Comparison.
A widget can appear once in each combination of layout page and widget group, so open a second copy by choosing a different group in Add Widget, or by adding the widget on another layout page. Where a widget is already open in the group and page you chose, its card in Add Widget is dimmed and names the page that holds it, as the Device Timeline card does in the dialog above. The Unified Trace Viewer (Developer Preview) is the exception: one group can hold several copies of it for device profiles.
There is no limit on the number of copies you open, or on the number of layout pages, panel groups, or widget groups you create.
Copies work independently except where a widget group connects them:
Selections, clicks, and hovers reach the other widgets in the same group. Copies in different groups don’t affect each other.
The profile belongs to each copy. On a system profile, use the profile dropdown in a widget’s toolbar to point one copy at a different device profile.
Zoom is per copy: zooming one timeline doesn’t move another. The time range is also remembered per profile, and the copy you zoomed last sets it, so a copy you open afterwards opens at that range, and the Current Selection Summary follows whichever copy zoomed last.
Annotations belong to the copy that created them. A timeline shows the annotations of the Annotations widget in its own group.
Layout pages#
Layout pages are the tabs above the workspace. Each page holds its own widgets and panel groups. Analysis and Summary are there to begin with.
When to use: Give each stage of an investigation its own page — an overview page, a page per NeuronCore, a page for source correlation — instead of rearranging one crowded workspace.
Create — select + at the end of the page tabs, name the page, and select Create. A new page starts empty.
Rename — double-click a page tab, or select the pencil icon on it, then type a name and press Enter.
Reorder — drag a page tab along the strip.
Close — select the x on a page tab. The last remaining page can’t be closed.
When you have more than eight pages, the extra pages move into a +N menu at the end of the strip.
Multi-profile analysis#
Add multiple widgets side by side in a profile page to create your own analysis dashboard. Each widget can show a different profile or data view. Use the profile dropdown to switch profiles within any widget, or open another copy of one widget per profile.
When to use: Compare execution across NeuronCores or instances in a distributed workload.
Dark and light mode#
Click the theme toggle in the top-right corner to switch between dark and light mode.
When to use: Personal preference, accessibility considerations, or matching your presentation theme in screenshots.
Hover options#
Hovering over an instruction or DMA transfer is the fastest way to check an event’s details while you move along the timeline. An event can have dozens of fields, though, and most of them don’t matter for a given investigation. Hover options let you choose which fields the hovers show. You can keep only the fields you care about, such as Opcode and Duration when you’re looking for slow instructions, or Semaphore ID and DMA Queue when you’re following DMA transfers. You can then read events at a glance without opening Event Details for each one.
To choose the fields, open Settings and select Hover Options. Under Device, the Instruction list sets the fields shown in instruction hovers, and the DMA list sets the fields shown in DMA hovers, including host-device DMA events. Under System, the System Event list sets the fields shown in System Trace Viewer hovers. The System section appears when a system profile is open. Select or clear fields, and the timeline uses your choices the next time you hover over an event. Click Select all to turn on every field, or Reset to defaults to restore the default fields.
Your choices are saved in your browser and apply to every profile. Hover options change only the hovers. Event Details always shows every field.
The default fields are:
Hover |
Shown by default |
Hidden by default |
|---|---|---|
Instruction |
Opcode, Event Type, DGE ID, Operands, Symbolic Operands, Instruction Chain, Duration, Duration Cycles, Performance Mode, Uses Vector/GpSimd Shared SBUF Read Port, Uses Vector/GpSimd Shared SBUF Write Port, SBUF Read Port Contention, SBUF Write Port Contention, Instruction Type, Activation Table, NKI Source Location, Layer |
Compiler Opcode, Time, Hierarchy, Compiler PC, CCI Slot, PC, Subgroup, Block ID, Kernel Instruction Name, Stack Frame ID(s), PyTorch Source |
DMA |
Duration, Duration Cycles, Semaphore ID, DMA Queue, DMA Type, Packet ID, Sequencer, Variable, Kernel Param Name, Source, Dest, Spill Type, Read Size, Write Size |
Time, Block ID, DMA Engine, DMA ID, Transfer Size |
System Event |
Name, Event Source, Instance ID, Process ID, Thread ID, Worker Global ID, NeuronCore Index, Physical Core Index, Model Name, Model ID, Device Profile, UltraServer ID, UltraServer Instance Index, Stream ID, Time, Duration |
None |
A field appears only when the event has a value for it. For example, the SBUF port fields appear only on Vector and GpSimd instructions.
When to use: Trim the hovers to the fields an investigation needs, or turn every field on with Select all.
This document is relevant for: Inf2, Trn1, Trn2, Trn3

