Files
James Zern 6dfdc4ee10 tiny_ssim: fix argc check
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
2024-09-18 19:06:17 +00:00
..
2021-11-03 16:23:06 -07:00
2022-05-23 15:06:17 -07:00
2017-01-12 12:27:27 -08:00
2022-05-23 15:06:17 -07:00
2024-09-18 19:06:17 +00:00

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.