[PATCH] D135659: add gdb index time trace

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 6 15:13:43 PST 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rGa86cfceb4411: [ELF] Add gdb index time trace (authored by Trass3r, committed by MaskRay).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D135659/new/

https://reviews.llvm.org/D135659

Files:
  lld/ELF/SyntheticSections.cpp


Index: lld/ELF/SyntheticSections.cpp
===================================================================
--- lld/ELF/SyntheticSections.cpp
+++ lld/ELF/SyntheticSections.cpp
@@ -2835,6 +2835,8 @@
 
 // Returns a newly-created .gdb_index section.
 template <class ELFT> GdbIndexSection *GdbIndexSection::create() {
+  llvm::TimeTraceScope timeScope("Create gdb index");
+
   // Collect InputFiles with .debug_info. See the comment in
   // LLDDwarfObj<ELFT>::LLDDwarfObj. If we do lightweight parsing in the future,
   // note that isec->data() may uncompress the full content, which should be


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D135659.473513.patch
Type: text/x-patch
Size: 592 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221106/b88dfd46/attachment.bin>


More information about the llvm-commits mailing list