Package is not linked with libunwind, which makes perf report very slow when dwarf graph is used.
I managed to rebuild linux-perf-4.18 manually with libunwind. Using the exact same set of samples, this is how it performs:
$ time sudo perf_4.18 report -G --no-inline > /dev/null
real 0m0.846s
user 0m0.654s
sys 0m0.190s
I confirmed the followings:
- linux-perf-4.9 is linked with libunwind and performs properly
- linux-perf-* packages in sid/experimental are also linked with libunwind
- linux-perf-* (>4.9) in Stretch backports are not linked with libunwind and they perform poorly
I suggest to rebuild all linux-perf packages in Stretch backports with libunwind linked.