[PATCH] D135659: add gdb index time trace

Trass3r via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 11 03:58:39 PDT 2022


Trass3r created this revision.
Herald added subscribers: arphaman, arichardson, emaste.
Herald added a reviewer: MaskRay.
Herald added a project: All.
Trass3r requested review of this revision.
Herald added subscribers: llvm-commits, StephenFan.
Herald added a project: LLVM.

Repository:
  rG LLVM Github Monorepo

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.466763.patch
Type: text/x-patch
Size: 592 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221011/5b6f7c5b/attachment.bin>


More information about the llvm-commits mailing list