am b0855527: am 17ac480d: am 55793400: Merge "init shouldn\'t call DumpState by default."

* commit 'b085552783bcfb529ec1bf4137578c160a49f45e':
  init shouldn't call DumpState by default.
This commit is contained in:
Elliott Hughes 2015-10-10 05:47:38 +00:00 committed by Android Git Automerger
commit d898725829
1 changed files with 4 additions and 1 deletions

View File

@ -105,7 +105,10 @@ bool Parser::ParseConfigFile(const std::string& path) {
for (const auto& sp : section_parsers_) {
sp.second->EndFile(path);
}
DumpState();
// Turning this on and letting the INFO logging be discarded adds 0.2s to
// Nexus 9 boot time, so it's disabled by default.
if (false) DumpState();
NOTICE("(Parsing %s took %.2fs.)\n", path.c_str(), t.duration());
return true;