[PATCH] D115984: [ELF] --time-trace: Trace "Write sections"
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 20 10:51:33 PST 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rG8825ffdbde01: [ELF] --time-trace: Trace "Write sections" (authored by MaskRay).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D115984/new/
https://reviews.llvm.org/D115984
Files:
lld/ELF/OutputSections.cpp
lld/ELF/Writer.cpp
Index: lld/ELF/Writer.cpp
===================================================================
--- lld/ELF/Writer.cpp
+++ lld/ELF/Writer.cpp
@@ -2893,6 +2893,8 @@
// Write section contents to a mmap'ed file.
template <class ELFT> void Writer<ELFT>::writeSections() {
+ llvm::TimeTraceScope timeScope("Write sections");
+
// In -r or --emit-relocs mode, write the relocation sections first as in
// ELf_Rel targets we might find out that we need to modify the relocated
// section while doing it.
Index: lld/ELF/OutputSections.cpp
===================================================================
--- lld/ELF/OutputSections.cpp
+++ lld/ELF/OutputSections.cpp
@@ -332,6 +332,7 @@
}
template <class ELFT> void OutputSection::writeTo(uint8_t *buf) {
+ llvm::TimeTraceScope timeScope("Write sections", name);
if (type == SHT_NOBITS)
return;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115984.395495.patch
Type: text/x-patch
Size: 866 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211220/3a69a7ca/attachment.bin>
More information about the llvm-commits
mailing list