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(
8381
8381
if (It == SpecLookups.end ())
8382
8382
return false ;
8383
8383
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
+
8384
8393
Deserializing LookupResults (this );
8385
8394
auto HashValue = StableHashForTemplateArguments (TemplateArgs);
8386
8395
Original file line number Diff line number Diff line change 15
15
#include " clang/AST/TypeVisitor.h"
16
16
#include " clang/Basic/IdentifierTable.h"
17
17
#include " llvm/ADT/FoldingSet.h"
18
+ #include " llvm/Support/TimeProfiler.h"
18
19
19
20
using namespace clang ;
20
21
@@ -405,6 +406,7 @@ void TemplateArgumentHasher::AddType(const Type *T) {
405
406
406
407
unsigned clang::serialization::StableHashForTemplateArguments (
407
408
llvm::ArrayRef<TemplateArgument> Args) {
409
+ llvm::TimeTraceScope TimeScope (" Stable Hash for Template Arguments" );
408
410
TemplateArgumentHasher Hasher;
409
411
Hasher.AddInteger (Args.size ());
410
412
for (TemplateArgument Arg : Args)
You can’t perform that action at this time.
0 commit comments