File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -107,6 +107,30 @@ gradlew -p benchmarks run --args ' MemoryStatsBenchmark -jvmArgs "-XX:+UnlockDia
107107
108108If you want ` perf ` to find the hot methods for you, then do add ` -prof perfasm ` .
109109
110+ NOTE: ` perfasm ` will need more access:
111+ ```
112+ sudo bash
113+ echo -1 > /proc/sys/kernel/perf_event_paranoid
114+ exit
115+ ```
116+
117+ If you get warnings like:
118+ ```
119+ The perf event count is suspiciously low (0).
120+ ```
121+ then check if you are bumping into [ this] ( https://man.archlinux.org/man/perf-stat.1.en#INTEL_HYBRID_SUPPORT )
122+ by running:
123+ ```
124+ perf stat -B dd if=/dev/zero of=/dev/null count=1000000
125+ ```
126+
127+ If you see lines like:
128+ ```
129+ 765019980 cpu_atom/cycles/ # 1.728 GHz (0.60%)
130+ 2258845959 cpu_core/cycles/ # 5.103 GHz (99.18%)
131+ ```
132+ then ` perf ` is just not going to work for you.
133+
110134## Async Profiler
111135
112136Note: Linux and Mac only. Sorry Windows.
You can’t perform that action at this time.
0 commit comments