testdriver: `collect*_stats('all')` should pass RESIDENCY_OPTS
It seems that collect_compiler_stats('all')
completely ignores Note [Measuring residency], which leads to annoying fluctuations for recently added tests such as T11545
and T15304
.
Not sure what's the best way to fix that; currently, collect_compiler_residency
calls collect_compiler_stats
, but maybe it should be the other way around?
At this point, residency profiling without RESIDENCY_OPTS
is bound to annoy in CI.