After D115416: [lld-macho] Make writing map file asynchronous, the "Write map file" event no longer shows up
in the time trace. Each time trace profiler instance is thread-local,
but we had neglected to initialize a separate instance for the mapfile
worker thread.
Details
Details
- Reviewers
keith - Group Reviewers
Restricted Project - Commits
- rGe976c457c5a3: [lld-macho] Initialize separate time trace profiler for mapfile worker
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Note: The LTO backend initializes the time trace profiler in a similar fashion: https://github.com/llvm/llvm-project/blob/f0b2a1a629dab17f2ea161a9281d8dc63b37a7a0/llvm/lib/LTO/LTO.cpp#L1271
Comment Actions
Looks like this commit makes the test flakey somehow.
- lld-x86_64-ubuntu-fast failed it tested this commit: https://lab.llvm.org/buildbot/#/builders/58/builds/16007
- Passed in the next commit, then failed again here: https://lab.llvm.org/buildbot/#/builders/58/builds/16009
- Then recovered again...
Comment Actions
This seems to break tests: http://45.33.8.238/macm1/25367/step_10.txt
Please take a look, and revert for now if takes a while to fix.
Comment Actions
Hm it seems that "Total Write map file" always exists, but the "Write map file" sub-event may or may not be emitted. Maybe it depends on whether that even occurs concurrently with other events?
I'll change the test to check for "Total Write map file" and see if that fixes things.