.. meta::
    :description: Guided overview of the Neuron Explorer UI — every viewer and tool grouped by use case with screenshots and descriptions.
    :keywords: neuron explorer, profiling, UI overview, performance analysis, debugging, memory, timeline, NKI, Trainium
    :date-modified: 2026-11-19

.. _neuron-explorer-ui-tour:

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
:doc:`get-started`.

.. contents:: On this page
   :local:
   :depth: 2

UI navigation map
-----------------

The following diagram shows how the viewers and tools connect within the Neuron
Explorer UI. Use it as a navigation map.

.. image:: /tools/neuron-explorer/images/Neuron-Explorer-UI-NavMap.png
   :alt: Neuron Explorer UI navigation map showing all viewers and their relationships
   :target: ../../_images/Neuron-Explorer-UI-NavMap.png

*Click the image to enlarge.*

Navigation and workspace
-------------------------

The navigation provides multiple ways to access profiles and tools,
organized around common workflows.

Sidebar navigation
~~~~~~~~~~~~~~~~~~

The left sidebar provides quick access to profile management without leaving your
current workspace:

* **Favourites** — Profiles you have starred appear directly in the sidebar for
  one-click access. Star a profile from the overflow menu or the Profile Manager
  page.
* **Recently Viewed** — Your most recently opened profiles, ordered by last access
  time. Quickly switch between profiles you are actively working with.
* **Recently Uploaded** — Newly uploaded profiles appear here automatically. 
  Use this to find profiles you just uploaded.
* **Resources** — Links to documentation and getting started guides.

Click **Profile Manager** in the sidebar header to return to the full profile
management page for uploading, searching, and bulk operations.

Focus Mode
~~~~~~~~~~

Focus Mode hides the top and side bars to maximize the workspace
area for timeline analysis. Toggle Focus Mode from the button cluster in the
top-right corner of the navigation bar.

Use Focus Mode when you need fewer distractions or more space to do your work.

Widget Tab Visibility
~~~~~~~~~~~~~~~~~~~~~

Widget tabs can now be hidden for less visual clutter when viewing widgets.

To control how widget tab handles are displayed, open **Settings**, choose
**Workspace settings**, and set **Tab bar visibility** to **Always visible**,
**Hide single-tab bars**, or **Hide all tab bars**.

Each option works as follows:

* **Always visible** — every panel group shows its tab bar. This is the default.
* **Hide single-tab bars** — a panel group that holds only one widget hides its
  tab bar. A panel group with several stacked widgets keeps its tabs, so you can
  still switch between them.
* **Hide all tab bars** — every panel group hides its tab bar, including the
  header buttons such as **Edit Widget Groups**.

A hidden tab bar shrinks to a thin strip at the top of the panel group. Hover
over the strip, or move keyboard focus to it, to show the tab bar again. Keep tab
bars visible while you arrange :ref:`widget groups <neuron-explorer-widget-groups>`,
because you need the **Edit Widget Groups** button to do it.

This setting affects only the widget tabs inside the workspace. The layout page
tabs above the workspace are always shown.

Notifications
~~~~~~~~~~~~~

Notifications tell you anything that's wrong or could be wrong with your profile.
Click the notification icon to view recent alerts, profile processing status updates,
and system messages without leaving your current workspace.

.. _neuron-explorer-view-history:

View history
~~~~~~~~~~~~

The Device Trace Viewer and the System Trace Viewer keep a history of the views you visit, so you can return to an earlier view after zooming in. Zooming in or out, or jumping to an event, adds a view. Stepping through search results adds one view that follows the current result. Panning updates the current view instead of adding one. A view is recorded once the timeline stops moving, so several quick zoom steps in a row count as one view.

* Press ``Z`` to go back to the previous view, and ``Shift+Z`` to go forward again. The help dialog (**?** in the toolbar) also lists these keys.
* Click the **View history** button, next to **Reset View** in the timeline toolbar, to list your recent views. Each row shows where the view sits in the profile and how far it is zoomed in, for example ``10×``. A dot marks the current view. Click another row to go to that view.

.. image:: /tools/images/device-profile-view-history.png
   :target: ../../_images/device-profile-view-history.png
   :alt: The View history menu open below the timeline toolbar, listing recent views with their position in the profile and zoom level

The history keeps your last five views for the current page session. It isn't saved with the profile, and reloading the page starts a new history. A view records the visible time range only, not the vertical scroll position or selections.

**When to use:** Zoom in to inspect a region, then go back to the wider view without zooming out by hand.

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.

.. image:: /tools/images/explorer-summary-page.png
   :target: ../../_images/explorer-summary-page.png

**When to use:** First thing after loading a profile — identify the top bottleneck
and decide where to focus.

**Learn more:** :doc:`overview-summary-page`

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.

.. image:: /tools/neuron-explorer/images/region-highlighter-fast-region-perf.png
   :target: ../../_images/region-highlighter-fast-region-perf.png

**When to use:** When you need to compare performance across model layers, kernels,
or collective boundaries without manually annotating the timeline.

**Learn more:** :doc:`overview-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).

.. image:: /tools/images/recommendation-view.png
   :target: ../../_images/recommendation-view.png

**When to use:** After profiling an NKI kernel — get specific optimization
suggestions without deep manual analysis.

**Learn more:** :doc:`overview-ai-recommendations`

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.

.. image:: /tools/images/device-profile-2.png
   :target: ../../_images/device-profile-2.png

**When to use:** Investigate hardware-level behavior — identify stalls, DMA/compute
overlap, and instruction-level bottlenecks.

**Learn more:** :doc:`overview-device-profiles`

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.

.. image:: /tools/images/neuron-explorer-system-viewer.png
   :target: ../../_images/neuron-explorer-system-viewer.png

**When to use:** Investigate distributed workload behavior, host-device data transfer
bottlenecks, or framework overhead.

**Learn more:** :doc:`overview-system-profiles`

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:** :doc:`overview-unified-trace-viewer`

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.

.. image:: /tools/images/hierarchy-view-1.gif
   :target: ../../_images/hierarchy-view-1.gif

**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:** :doc:`overview-hierarchy-view`

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.

.. image:: /tools/images/dependency_chain_viewer.png
   :target: ../../_images/dependency_chain_viewer.png

**When to use:** Trace the causal chain of a slow event — understand what triggered
it and what it blocks.

**Learn more:** :doc:`overview-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.

.. image:: /tools/images/tensor-viewer-table.png
   :target: ../../_images/tensor-viewer-table.png

**When to use:** Verify tensors are loaded efficiently, find specific tensor DMA
patterns, or cross-reference tensor names with device-level operations.

**Learn more:** :doc:`overview-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.

.. image:: /tools/images/memory_viewer_overview.png
   :target: ../../_images/memory_viewer_overview.png
   :width: 80%

**When to use:** Debug memory fragmentation, analyze spill/reload patterns, or verify
memory compactness for NKI kernel optimization.

**Learn more:** :doc:`overview-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.

.. image:: /tools/neuron-explorer/images/bidirectional-nav.gif
   :alt: Bidirectional navigation between Source Code Viewer and Device Trace Viewer
   :target: ../../_images/bidirectional-nav.gif

**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:** :doc:`how-to-link-view-source-code`

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.

.. image:: /tools/images/device-profile-8.png
   :target: ../../_images/device-profile-8.png

**When to use:** Mark specific regions for measurement, compare before/after, or
share specific profile views with teammates.

**Learn more:** :doc:`overview-device-profiles` (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.

.. image:: /tools/images/device-profile-9.png
   :target: ../../_images/device-profile-9.png

**When to use:** Compare per-operator performance metrics across your model's layers
without manually selecting timeline regions.

**Learn more:** :doc:`overview-device-profiles` (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.

.. image:: /tools/images/device-profile-13.png
   :target: ../../_images/device-profile-13.png

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 :ref:`layout pages <neuron-explorer-layout-pages>`, and open
:ref:`more than one copy <neuron-explorer-widget-copies>` 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.

.. _neuron-explorer-widget-groups:

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.

.. image:: /tools/images/add-widget-groups.png
   :alt: The Add Widget dialog with a row of group color swatches, and a Device Timeline card dimmed and marked "Already in Analysis"
   :target: ../../_images/add-widget-groups.png

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**.

.. image:: /tools/images/widget-groups-modal.png
   :alt: The Widget Groups dialog listing two open widgets, each with group color swatches and a button to move it to a new group
   :target: ../../_images/widget-groups-modal.png

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**.

.. _neuron-explorer-widget-copies:

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
  :ref:`Profile Comparison <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.

.. _neuron-explorer-layout-pages:

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.

.. image:: /tools/images/layout-pages-tabs.png
   :alt: The layout page tabs Analysis and Summary above the workspace, followed by the plus button that creates a page
   :target: ../../_images/layout-pages-tabs.png

* **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.

.. image:: /tools/images/layout-pages-create.png
   :alt: The Create profile layout page dialog with a Page name field and Cancel and Create buttons
   :target: ../../_images/layout-pages-create.png

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
:ref:`another copy <neuron-explorer-widget-copies>` of one widget per profile.

.. image:: /tools/images/widget_switch_profiles.png
   :target: ../../_images/widget_switch_profiles.png

**When to use:** Compare execution across NeuronCores or instances in a distributed
workload.

.. _neuron-explorer-dark-light-mode:

Dark and light mode
~~~~~~~~~~~~~~~~~~~

Click the theme toggle in the top-right corner to switch between dark and light mode.

.. image:: /tools/neuron-explorer/images/dark-light-mode-toggle.png
   :target: ../../_images/dark-light-mode-toggle.png

**When to use:** Personal preference, accessibility considerations, or matching your
presentation theme in screenshots.

.. _neuron-explorer-hover-options:
.. _neuron-explorer-system-hover-options:

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.

.. image:: /tools/images/hover-options-settings.png
   :target: ../../_images/hover-options-settings.png
   :alt: Settings with Hover Options selected, showing the Instruction and DMA field lists under Device and the System Event list under System

The default fields are:

.. list-table::
   :header-rows: 1
   :widths: 14 50 36

   * - 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**.
