File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -8381,6 +8381,15 @@ bool ASTReader::LoadExternalSpecializationsImpl(
83818381 if (It == SpecLookups.end ())
83828382 return false ;
83838383
8384+ llvm::TimeTraceScope TimeScope (" Load External Specializations for " , [&] {
8385+ std::string Name;
8386+ llvm::raw_string_ostream OS (Name);
8387+ auto *ND = cast<NamedDecl>(D);
8388+ ND->getNameForDiagnostic (OS, ND->getASTContext ().getPrintingPolicy (),
8389+ /* Qualified=*/ true );
8390+ return Name;
8391+ });
8392+
83848393 Deserializing LookupResults (this );
83858394 auto HashValue = StableHashForTemplateArguments (TemplateArgs);
83868395
Original file line number Diff line number Diff line change 1515#include " clang/AST/TypeVisitor.h"
1616#include " clang/Basic/IdentifierTable.h"
1717#include " llvm/ADT/FoldingSet.h"
18+ #include " llvm/Support/TimeProfiler.h"
1819
1920using namespace clang ;
2021
@@ -405,6 +406,7 @@ void TemplateArgumentHasher::AddType(const Type *T) {
405406
406407unsigned clang::serialization::StableHashForTemplateArguments (
407408 llvm::ArrayRef<TemplateArgument> Args) {
409+ llvm::TimeTraceScope TimeScope (" Stable Hash for Template Arguments" );
408410 TemplateArgumentHasher Hasher;
409411 Hasher.AddInteger (Args.size ());
410412 for (TemplateArgument Arg : Args)
You can’t perform that action at this time.
0 commit comments