From 80a4ecca3460dafb2653abef37683562de877f91 Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Sat, 7 Nov 2020 23:00:01 +0900 Subject: [PATCH] temporary --- main.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/main.cc b/main.cc index ae24356b..21f2ea4c 100644 --- a/main.cc +++ b/main.cc @@ -726,21 +726,25 @@ int main(int argc, char **argv) { std::vector files; + llvm::TimerGroup parse("parse", "parse"); llvm::TimerGroup before_copy("before_copy", "before_copy"); // Open input files { - MyTimer t("parse"); + MyTimer t("open", parse); for (auto *arg : args) if (arg->getOption().getID() == OPT_INPUT) read_file(files, arg->getValue()); + } - // Parse input files + // Parse input files + { + MyTimer t("parse", parse); for_each(files, [](ObjectFile *file) { file->parse(); }); } { - MyTimer t("merge"); + MyTimer t("merge", parse); for_each(files, [](ObjectFile *file) { file->initialize_mergeable_sections(); }); }