From ea3fa0b4ba13d7bd7f7c1cd85202ccbe141a35ae Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Mon, 10 Feb 2014 11:59:41 +0000 Subject: Re-apply: Implement cumulative timings for CompilerDriver. The bug was due to how the test infrastructure works: a compiler driver surives the stack where it is allocated. Change-Id: I345fe0e4afb2bd15937233db8afb350f09429558 --- compiler/driver/compiler_driver.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'compiler/driver/compiler_driver.cc') diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc index 9f48351645..c8fe4a84a8 100644 --- a/compiler/driver/compiler_driver.cc +++ b/compiler/driver/compiler_driver.cc @@ -342,7 +342,7 @@ CompilerDriver::CompilerDriver(VerificationResults* verification_results, CompilerBackend compiler_backend, InstructionSet instruction_set, InstructionSetFeatures instruction_set_features, bool image, DescriptorSet* image_classes, size_t thread_count, - bool dump_stats) + bool dump_stats, bool dump_passes, CumulativeLogger* timer) : verification_results_(verification_results), method_inliner_map_(method_inliner_map), compiler_backend_(compiler_backend), @@ -357,6 +357,8 @@ CompilerDriver::CompilerDriver(VerificationResults* verification_results, start_ns_(0), stats_(new AOTCompilationStats), dump_stats_(dump_stats), + dump_passes_(dump_passes), + timings_logger_(timer), compiler_library_(NULL), compiler_(NULL), compiler_context_(NULL), -- cgit v1.2.3-59-g8ed1b