summaryrefslogtreecommitdiff
path: root/compiler/driver/compiler_driver.h
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2014-01-17 11:41:07 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2014-01-17 11:41:08 +0000
commitf3f139f1cd4a9231c2f7ed8e799aa8adeb77f4d4 (patch)
tree37626467ef0ebac4ba8dd034250088391d880556 /compiler/driver/compiler_driver.h
parentf58c3397ab1163b8e8e1e8f6ad373665b1f3ef9e (diff)
parentdf013175d1aa04641e5c6175f8c786e547d31654 (diff)
Merge "Implement cumulative timings for CompilerDriver."
Diffstat (limited to 'compiler/driver/compiler_driver.h')
-rw-r--r--compiler/driver/compiler_driver.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/compiler/driver/compiler_driver.h b/compiler/driver/compiler_driver.h
index 9e316242ba..aabdf2f9f6 100644
--- a/compiler/driver/compiler_driver.h
+++ b/compiler/driver/compiler_driver.h
@@ -22,6 +22,7 @@
#include <vector>
#include "base/mutex.h"
+#include "base/timing_logger.h"
#include "class_reference.h"
#include "compiled_class.h"
#include "compiled_method.h"
@@ -97,7 +98,8 @@ class CompilerDriver {
CompilerBackend compiler_backend, InstructionSet instruction_set,
InstructionSetFeatures instruction_set_features,
bool image, DescriptorSet* image_classes,
- size_t thread_count, bool dump_stats);
+ size_t thread_count, bool dump_stats, bool dump_passes,
+ CumulativeLogger* timer);
~CompilerDriver();
@@ -267,6 +269,14 @@ class CompilerDriver {
return thread_count_;
}
+ bool GetDumpPasses() const {
+ return dump_passes_;
+ }
+
+ CumulativeLogger& GetTimingsLogger() const {
+ return *timings_logger_;
+ }
+
class PatchInformation {
public:
const DexFile& GetDexFile() const {
@@ -436,6 +446,9 @@ class CompilerDriver {
UniquePtr<AOTCompilationStats> stats_;
bool dump_stats_;
+ const bool dump_passes_;
+
+ CumulativeLogger* const timings_logger_;
typedef void (*CompilerCallbackFn)(CompilerDriver& driver);
typedef MutexLock* (*CompilerMutexLockFn)(CompilerDriver& driver);