From a86cfceb44114b3eb871c808d0caca9d512ec5b3 Mon Sep 17 00:00:00 2001 From: Andreas Hollandt Date: Sun, 6 Nov 2022 15:13:32 -0800 Subject: [PATCH] [ELF] Add gdb index time trace Reviewed By: MaskRay Differential Revision: https://reviews.llvm.org/D135659 --- lld/ELF/SyntheticSections.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lld/ELF/SyntheticSections.cpp b/lld/ELF/SyntheticSections.cpp index cb98a2d..316d894 100644 --- a/lld/ELF/SyntheticSections.cpp +++ b/lld/ELF/SyntheticSections.cpp @@ -2835,6 +2835,8 @@ createSymbols( // Returns a newly-created .gdb_index section. template GdbIndexSection *GdbIndexSection::create() { + llvm::TimeTraceScope timeScope("Create gdb index"); + // Collect InputFiles with .debug_info. See the comment in // LLDDwarfObj::LLDDwarfObj. If we do lightweight parsing in the future, // note that isec->data() may uncompress the full content, which should be -- 2.7.4