Profiler-weighted ranking of static optimization matches
Performance engineers could run MoST-style validated Semgrep rules across a repository, then rank the matches by the runtime share and call context reported by a sampling profiler. MoST supplies reusable candidate transformations across languages and architectures, but a static match does not show whether a location matters for the deployed workload; PerfAgent shows that profiler feedback helps agents cross abstraction boundaries and reach expert-level speedups more often. The concrete change is to give the coding agent only the highest-impact rule matches, re-profile every correct patch, and retain the fastest result rather than the last one. A low-cost check is to compare profiler-ranked and unranked rule matches on the same optimization tasks, measuring successful speedup per attempted edit and validation cost.