Skip to content

Panic "could not find header" when running collector on Windows #1032

Open
@petrochenkov

Description

@petrochenkov

Perf tools (installed from ADK as suggested for Windows 8.1):

C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\xperf.exe
C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\tracelog.exe
Microsoft (R) Windows (R) Performance Analyzer Version 10.0.19041
Microsoft (R) tracelog.exe (10.0.19041.685)

Output from running collector (with some debug logging added):
(Collector has to be run from admin console, otherwise you get other errors like "error: rustc-perf-counters: The instance name passed was not recognized as valid by a WMI data provider".)

.\target\x86_64-pc-windows-msvc\release\collector.exe bench_local "C:\Users\we\.cargo\bin\rustc.exe" 127
Benchmarking 127 for triple x86_64-unknown-linux-gnu
45 benchmarks remaining
Preparing await-call-tree
Running await-call-tree: Check + [Full, IncrFull, IncrUnchanged, IncrPatched]
[1/2]    100.0%
[2/2]    100.0%
[collector\src\etw_parser.rs:163] &h.name = "P-Start"
[collector\src\etw_parser.rs:163] &h.name = "P-Start"
[collector\src\etw_parser.rs:163] &h.name = "P-End"
[collector\src\etw_parser.rs:163] &h.name = "P-Start"
[collector\src\etw_parser.rs:163] &h.name = "P-End"
[collector\src\etw_parser.rs:163] &h.name = "CSwitch"
thread 'main' panicked at 'could not find header: Pmc', collector\src\etw_parser.rs:164:14
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-collectorIssues related to the collectorO-windowsAn issue specific to the Windows OS

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions