Skip to main content

ZView, a Zephyr RTOS runtime visualizer

Project description

ZView, a Zephyr RTOS runtime visualizer

Zephyr RTOS system-wide runtime visualizer via SWD probe!

Take a broader look on your Zephyr application with a non-heavy, small footprint, Kconfig-only thread stats analyser.

This page covers the standalone pip installation. If you are using ZView inside a west workspace (the most common setup), see the main documentation instead.

Prerequisites

To properly analyze your Zephyr app, your ELF binary must be compiled with specific Kconfig options enabled:

## prj.conf
CONFIG_INIT_STACKS=y            # Required for stack watermarks
CONFIG_THREAD_MONITOR=y         # Required for thread discovery
CONFIG_THREAD_STACK_INFO=y      # Required for thread metadata

# Optional Features
CONFIG_THREAD_NAME=y            # Enables thread name display
CONFIG_THREAD_RUNTIME_STATS=y   # Enables CPU usage tracking
CONFIG_SYS_HEAP_RUNTIME_STATS=y # Enables heap runtime stats

Installation

Install ZView in your Python virtual environment:

pip install zview

Or from the root of the repository:

pip install .

How to Use

# Example: nRF5340 DK via JLink
zview -e build/zephyr/zephyr.elf -r jlink -t nRF5340_xxAA

Arguments

Argument Description
-e, --elf-file Path to the firmware .elf file (e.g. build/zephyr/zephyr.elf).
-r, --runner Debug runner to use: jlink, pyocd, or gdb.
-t, --runner-target MCU descriptor for the chosen runner (see below).
--period Update period in seconds, can be a float.
Finding the right value for -t

The -t argument is the MCU descriptor name as expected by your chosen runner. How to find it depends on the runner:

JLink (-r jlink) Use the device name from the J-Link Supported Devices list.

# Example: Nordic nRF5340 DK
zview -e build/zephyr/zephyr.elf -r jlink -t nRF5340_xxAA

pyOCD (-r pyocd) Run pyocd list --targets to see the available target names for your installed packs.

pyocd list --targets          # find your target name

# Example: STM32F401 Nucleo
zview -e build/zephyr/zephyr.elf -r pyocd -t stm32f401xe

GDB server (-r gdb) Pass the host:port of your GDB server instead of a device name.

zview -e build/zephyr/zephyr.elf -r gdb -t localhost:1234

For navigation, advanced usage, and QEMU/GDB targets, refer to the main documentation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zview-0.5.5.tar.gz (26.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zview-0.5.5-py3-none-any.whl (22.9 kB view details)

Uploaded Python 3

File details

Details for the file zview-0.5.5.tar.gz.

File metadata

  • Download URL: zview-0.5.5.tar.gz
  • Upload date:
  • Size: 26.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zview-0.5.5.tar.gz
Algorithm Hash digest
SHA256 66d88622b96f036a52daf503d47ac9066ddd2479d5c38dcf386a5422303b4eba
MD5 ab8f26265e68d34c7202cedaf32d2837
BLAKE2b-256 e68ad796736115c5c8db61337daffd85143aeefc08ae92e20bf2ed199f0d66f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for zview-0.5.5.tar.gz:

Publisher: version_release.yml on wkhadgar/zview

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zview-0.5.5-py3-none-any.whl.

File metadata

  • Download URL: zview-0.5.5-py3-none-any.whl
  • Upload date:
  • Size: 22.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zview-0.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 07c0cb3f987ad7993add9b3e536af78ed9115ff5af692ad4c80a4c0078546c0c
MD5 ff300e190b47f04f1ef97b35dad4bffd
BLAKE2b-256 2b1dab9a0aa5371901baf0fb8bbc3100052ed4ae24e09c1262986699cb217919

See more details on using hashes here.

Provenance

The following attestation bundles were made for zview-0.5.5-py3-none-any.whl:

Publisher: version_release.yml on wkhadgar/zview

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page