A profiling code-layout optimizer based on function level reference affinity.