File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ environments do not permit access to these counters for guest VMs.
165
165
You will also need to provide the paths to the xperf and tracelog tools (or have them
166
166
available on your PATH). Some common paths to these tools look like:
167
167
168
- ```
168
+ ``` pwsh
169
169
$env:XPERF="C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\xperf.exe"
170
170
$env:TRACELOG="C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\tracelog.exe"
171
171
```
@@ -177,7 +177,7 @@ profiler is the `self-profiler`.
177
177
As a complete example, let's run just the ` regex ` benchmark in the ` Debug ` build with
178
178
self-profiling results available:
179
179
180
- ```
180
+ ``` pwsh
181
181
$env:XPERF="C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\xperf.exe"
182
182
$env:TRACELOG="C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\tracelog.exe"
183
183
.\target\release\collector.exe bench_local $env:RUST_ORIGINAL Original --builds Debug --include regex --self-profile
Original file line number Diff line number Diff line change @@ -120,6 +120,7 @@ fn validate_os_header_line(r: &mut dyn BufRead) -> anyhow::Result<()> {
120
120
Ok ( ( ) )
121
121
}
122
122
123
+ /// An instance of a Performance Monitoring Counter event.
123
124
#[ derive( Debug , Eq , PartialEq ) ]
124
125
struct Pmc {
125
126
timestamp : u64 ,
@@ -128,6 +129,7 @@ struct Pmc {
128
129
total_cycles : u64 ,
129
130
}
130
131
132
+ /// An instance of a Context Switch event.
131
133
#[ derive( Debug , Eq , PartialEq ) ]
132
134
struct CSwitch {
133
135
timestamp : u64 ,
You can’t perform that action at this time.
0 commit comments