summaryrefslogtreecommitdiffstats
path: root/compiler/oat_test.cc
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2014-01-13 10:11:18 +0000
committerNicolas Geoffray <ngeoffray@google.com>2014-01-16 11:05:30 +0000
commitdf013175d1aa04641e5c6175f8c786e547d31654 (patch)
tree2d1ba389c73218bff2f61e958ee2be2656b3b3b9 /compiler/oat_test.cc
parent00e7f2e935d98f0eb14f5ef1d376604d0054bf5e (diff)
downloadart-df013175d1aa04641e5c6175f8c786e547d31654.zip
art-df013175d1aa04641e5c6175f8c786e547d31654.tar.gz
art-df013175d1aa04641e5c6175f8c786e547d31654.tar.bz2
Implement cumulative timings for CompilerDriver.
Change-Id: I3b04de7f2717273f356b8120f68d69e2379bab2f
Diffstat (limited to 'compiler/oat_test.cc')
-rw-r--r--compiler/oat_test.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/oat_test.cc b/compiler/oat_test.cc
index 2434262..12d8212 100644
--- a/compiler/oat_test.cc
+++ b/compiler/oat_test.cc
@@ -82,10 +82,11 @@ TEST_F(OatTest, WriteRead) {
verified_methods_data_.reset(new VerifiedMethodsData);
method_inliner_map_.reset(compiler_backend == kQuick ? new DexFileToMethodInlinerMap : nullptr);
callbacks_.Reset(verified_methods_data_.get(), method_inliner_map_.get());
+ CumulativeLogger timer("Compilation times");
compiler_driver_.reset(new CompilerDriver(verified_methods_data_.get(),
method_inliner_map_.get(),
compiler_backend, insn_set,
- insn_features, false, NULL, 2, true));
+ insn_features, false, NULL, 2, true, true, &timer));
jobject class_loader = NULL;
if (kCompile) {
TimingLogger timings("OatTest::WriteRead", false, false);