From ea1e520e5a4b52b668ea2f9d3abdd9ae3a192186 Mon Sep 17 00:00:00 2001 From: Calin Juravle Date: Wed, 2 Apr 2014 15:41:43 +0100 Subject: Fixed total method count in profile file parsing. Change-Id: Iae38b3ca296378d17f054ac330301035ec684084 --- compiler/driver/compiler_driver.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/driver/compiler_driver.cc') diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc index 59754d5a50..4f98ba4cf9 100644 --- a/compiler/driver/compiler_driver.cc +++ b/compiler/driver/compiler_driver.cc @@ -2050,7 +2050,7 @@ bool CompilerDriver::ReadProfile(const std::string& filename) { // This is the number of hits in all methods. uint32_t total_count = 0; for (int i = 0 ; i < 3; ++i) { - total_count += atoi(summary_info[0].c_str()); + total_count += atoi(summary_info[i].c_str()); } // Now read each line until the end of file. Each line consists of 3 fields separated by / -- cgit v1.2.3-59-g8ed1b