Skip to content

wperf 0.12.0.10

Choose a tag to compare

@github-actions github-actions released this 17 Nov 14:16

wperf 0.12.0

This release makes symbol resolution easier to diagnose and adds a native,
self-contained HTML workflow for CPU and off-CPU FlameGraphs. The existing
flamegraph.pl SVG workflow remains supported.

Highlights

  • Added report --flamegraph and the standalone wperf flamegraph command for
    interactive HTML FlameGraphs generated without Perl, external JavaScript, or
    network access.
  • Added symbol diagnostics for DbgHelp, effective symbol search paths, the
    persistent .symcache, resolution layers, module rejection reasons, and
    missing PDB/PE details.
  • Fixed --symbol-path so explicit local paths augment _NT_SYMBOL_PATH instead
    of replacing it. This restores Microsoft symbol-server lookup for modules such
    as kernel32.dll and ntdll.dll.
  • Made --symbol-path repeatable and added semicolon-separated multi-path
    values for mixed local and symbol-server workflows.

Interactive FlameGraph HTML

CPU, PMC, and off-CPU reports can now be rendered directly:

wperf report -i cpu.etl --symbol-path .\symbols --flamegraph -o cpu.html
wperf report -i sched.etl --off-cpu --flamegraph -o offcpu.html
wperf flamegraph -i stacks.folded -o stacks.html

The generated page supports:

  • click-to-inspect frame details, including function, module, and module identity;
  • double-click zoom, drag range selection, breadcrumb navigation, and reset;
  • search with Enter/Shift+Enter navigation;
  • minimum-percentage filtering and current-view SVG/PNG export;
  • stack copying with one frame per line and folded-stack copying;
  • horizontal scrolling for long stack frames instead of confusing wrapped text.

SVG/PNG exports contain the current filtered and focused view, not only the
initial graph. HTML generation is a presentation feature and does not change the
stable JSON/CSV output contracts.

Symbol diagnostics

report --verbose now reports:

  • the DbgHelp version and effective symbol path source;
  • explicit and environment symbol paths;
  • the .symcache location and cache byte usage;
  • memory, persistent-cache, and DbgHelp resolution counts;
  • unresolved addresses, module totals, and rejected/missing-PDB module details.

report --json --metadata exposes the same information under symbols. Full
local paths are retained intentionally because this is local troubleshooting
data. doctor --bundle creates a bundle for review; it does not automatically
redact user paths or environment-derived symbol-server credentials. Review a
bundle before sharing it.

Compatibility and behavior changes

  • Explicit --symbol-path values are now prepended to _NT_SYMBOL_PATH rather
    than replacing it.

  • --symbol-path accepts multiple paths, with repeatable options and semicolon
    separation.

  • CPU and off-CPU report --json --metadata responses add a symbols object.
    Consumers should tolerate additive fields as documented by the public
    contract.

  • report --folded remains available for external SVG generation. For example:

    wperf report -i app.etl --weight samples --folded -o stacks.folded
    perl flamegraph.pl stacks.folded > stacks.svg

Validation

The release workflow builds and tests the x64 Release configuration and requires
WPERF_REQUIRE_LIVE_TESTS=1. The local elevated validation completed all 74 CTest
entries, including the live ETW, PMC, symbol-image, and diagnostics paths.
Release assets include wperf.exe, wperf.pdb, manifest.json, and
SHA256SUMS.txt.

Known limitations

  • Hardware-specific PMC and live ETW behavior still depends on the Windows
    version, CPU family, and available ETW providers.
  • Symbol-server access depends on a valid _NT_SYMBOL_PATH and network/proxy
    configuration. First-time downloads from a slow or unreachable symbol server
    can significantly delay reports; cached PDBs and local symbol paths avoid that
    wait. Partial symbol-download recovery remains future work.
  • HTML FlameGraph is a local artifact; it does not provide multi-user
    collaboration or server-side storage.
  • flamegraph.pl remains the supported route when an external SVG file is
    required.