[lld-macho] Add more TimeTraceScopes
authorJez Ng <jezng@fb.com>
Thu, 25 Mar 2021 18:39:44 +0000 (14:39 -0400)
committerJez Ng <jezng@fb.com>
Thu, 25 Mar 2021 18:51:31 +0000 (14:51 -0400)
commit4bcaafeb0e82ca268d9038e106339d4d92e98eec
tree6174f8cb950615714be76403941bf8db5a2d93e2
parent53fd1ada76e0f73a17da53ec0b2ac97e2f3e835e
[lld-macho] Add more TimeTraceScopes

I added just enough to allow us to see a top-level breakdown of time taken. This
is the result of loading the time-trace output into `chrome:://tracing`:

https://gist.githubusercontent.com/int3/236c723cbb4b6fa3b2d340bb6395c797/raw/ef5e8234f3fdf609bf93b50f54f4e0d9bd439403/tracing.png

Reviewed By: oontvoo

Differential Revision: https://reviews.llvm.org/D99311
lld/MachO/Config.h
lld/MachO/Driver.cpp
lld/MachO/MapFile.cpp
lld/MachO/Writer.cpp