[PATCH] D128343: [lld/mac] Add a few TimeTraceScopes
    Nico Weber via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Jun 23 08:47:14 PDT 2022
    
    
  
This revision was automatically updated to reflect the committed changes.
Closed by commit rG0ec87addb7d1: [lld/mac] Add a few TimeTraceScopes (authored by thakis).
Herald added a project: LLVM.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D128343/new/
https://reviews.llvm.org/D128343
Files:
  lld/MachO/Driver.cpp
  lld/MachO/ICF.cpp
  lld/MachO/Writer.cpp
Index: lld/MachO/Writer.cpp
===================================================================
--- lld/MachO/Writer.cpp
+++ lld/MachO/Writer.cpp
@@ -1126,8 +1126,10 @@
 }
 
 void Writer::writeCodeSignature() {
-  if (codeSignatureSection)
+  if (codeSignatureSection) {
+    TimeTraceScope timeScope("Write code signature");
     codeSignatureSection->writeHashes(buffer->getBufferStart());
+  }
 }
 
 void Writer::writeOutputFile() {
Index: lld/MachO/ICF.cpp
===================================================================
--- lld/MachO/ICF.cpp
+++ lld/MachO/ICF.cpp
@@ -373,6 +373,7 @@
 }
 
 void macho::markAddrSigSymbols() {
+  TimeTraceScope timeScope("Mark addrsig symbols");
   for (InputFile *file : inputFiles) {
     ObjFile *obj = dyn_cast<ObjFile>(file);
     if (!obj)
Index: lld/MachO/Driver.cpp
===================================================================
--- lld/MachO/Driver.cpp
+++ lld/MachO/Driver.cpp
@@ -1073,6 +1073,7 @@
 }
 
 static void foldIdenticalLiterals() {
+  TimeTraceScope timeScope("Fold identical literals");
   // We always create a cStringSection, regardless of whether dedupLiterals is
   // true. If it isn't, we simply create a non-deduplicating CStringSection.
   // Either way, we must unconditionally finalize it here.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128343.439422.patch
Type: text/x-patch
Size: 1273 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220623/85cd5a84/attachment.bin>
    
    
More information about the llvm-commits
mailing list