The program requires a minimum of 2 parameters. Previously the tool would crash if only one input file was given. Bug: webm:365481206 Change-Id: I875d81b2db4fcc4338061c03b23bb51b0aad58e4
Using Profile Guided Optimizations to identify compiler optimization failures
When using Clang, the -Rpass-missed flag enables the verbose log of failed
compiler optimizations. However, the extensive log messages can obscure
potential optimization opportunities.
Use the following steps to generate a more transparent optimization report using a previously created PGO profile file. The report also includes code hotness diagnostics:
$ ../libvpx/configure --use-profile=perf.profdata \
--extra-cflags="-fsave-optimization-record -fdiagnostics-show-hotness"
Convert the generated YAML files into a detailed HTML report using the optviewer2 tool:
$ opt-viewer.py --output-dir=out/ --source-dir=libvpx .
The HTML report displays each code line's relative hotness, cross-referenced with the failed compiler optimizations.