File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,8 @@ except that `$PROFILER` is one of the following.
229
229
where execution time is spent and finding hot functions.
230
230
- ** Slowdown** . Negligible.
231
231
- ** Output** . Binary output is written to files with a ` perf ` prefix. Those
232
- files can be read with ` perf-report ` and other similar ` perf ` commands.
232
+ files can be read with ` perf-report ` and other similar ` perf ` commands, or
233
+ with the excellent [ Hotspot] ( https://github.com/KDAB/hotspot ) viewer.
233
234
- ` oprofile ` : Profile with [ OProfile] ( http://oprofile.sourceforge.net/ ) , a
234
235
sampling profiler.
235
236
- ** Purpose** . OProfile is a general-purpose profiler, good for seeing
Original file line number Diff line number Diff line change @@ -104,7 +104,8 @@ fn main() {
104
104
cmd. arg ( "record" )
105
105
. arg ( "--call-graph=dwarf" )
106
106
. arg ( "--output=perf" )
107
- . arg ( "--freq=99" )
107
+ . arg ( "--freq=299" )
108
+ . arg ( "--event=cycles:u,instructions:u" )
108
109
. arg ( & rustc)
109
110
. args ( & args) ;
110
111
You can’t perform that action at this time.
0 commit comments