compilerBenchmarks.clear();
flex2.compiler.Logger logger = ThreadLocalToolkit.getLogger();
for (int i = 0; i < compilers.length; i++)
{
SubCompiler compiler = compilers[i];
PerformanceData[] times = compiler.getBenchmarks();
if (times != null)
{
compiler.logBenchmarks(logger);
String compilerName = compiler.getName();
assert(!compilerBenchmarks.containsKey(compilerName));
compilerBenchmarks.put(compilerName, times);
}
// Now check for any embedded compilers and get their phase times.
// "synthesize" compiler name by appending _ebm to main compiler name
times = compiler.getEmbeddedBenchmarks();
if (times != null)
{
compiler.logBenchmarks(logger);
String compilerName = compiler.getName();
compilerName += "_emb";
assert(!compilerBenchmarks.containsKey(compilerName));
compilerBenchmarks.put(compilerName, times);
}