[PATCH] D60337: [test-suite] litsupport/modules/microbenchmark.py: propagate perf file to the microbenchmarks
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 10 07:55:36 PDT 2019
lebedev.ri updated this revision to Diff 194516.
lebedev.ri added a comment.
Properly check that said attr exists.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60337/new/
https://reviews.llvm.org/D60337
Files:
litsupport/modules/microbenchmark.py
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60337.194516.patch
Type: text/x-patch
Size: 716 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190410/fba8ef7e/attachment.bin>
More information about the llvm-commits
mailing list