Index: litsupport/modules/microbenchmark.py =================================================================== --- litsupport/modules/microbenchmark.py +++ litsupport/modules/microbenchmark.py @@ -39,6 +39,12 @@ exec_time_metric = lit.Test.toMetricValue(benchmark['cpu_time']) microBenchmark.addMetric('exec_time', exec_time_metric) + # Propagate the perf profile to the microbenchmark. + if hasattr(context, 'profilefile'): + microBenchmark.addMetric( + 'profile', lit.Test.toMetricValue( + context.profilefile)) + # Add Micro Result context.micro_results[name] = microBenchmark