If dex2oat takes >1s, show a breakdown of where the time went.
Turns out that we spend nearly as much time verifying as actually compiling.
Change-Id: Icf2e42b4cc77bd9a48a6d04a4fe19f57270c5927
diff --git a/src/compiler.h b/src/compiler.h
index 6c67298..7b66d52 100644
--- a/src/compiler.h
+++ b/src/compiler.h
@@ -33,6 +33,8 @@
namespace art {
+class TimingLogger;
+
class Compiler {
public:
// Create a compiler targeting the requested "instruction_set".
@@ -109,7 +111,7 @@
// Checks if class specified by type_idx is one of the image_classes_
bool IsImageClass(const std::string& descriptor) const;
- void PreCompile(const ClassLoader* class_loader, const std::vector<const DexFile*>& dex_files);
+ void PreCompile(const ClassLoader* class_loader, const std::vector<const DexFile*>& dex_files, TimingLogger& timing);
void PostCompile(const ClassLoader* class_loader, const std::vector<const DexFile*>& dex_files);
// Attempt to resolve all type, methods, fields, and strings