Skip to content

build: add support for section ordering

Adds support for using a section ordering file with the gold linker. This makes it possible to reorder functions in a build to optimize for a specific workload.

hfsort is a tool that can be used to generate such a file from perf- recorded LBR data by running Node.js as node --perf-basic-prof.

Refs: https://github.com/facebook/hhvm/tree/9966d482c19c6120c621c6f3896525fb19fb3842/hphp/tools/hfsort Refs: https://software.intel.com/content/www/us/en/develop/articles/runtime-optimization-blueprint-IA-optimization-with-last-branch-record.html Refs: https://github.com/nodejs/node/pull/16891/ Signed-off-by: @gabrielschulhof

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • documentation is changed or added
  • commit message follows commit guidelines

Merge request reports

Loading