9#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_CLANGTIDYPROFILING_H
10#define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_CLANGTIDYPROFILING_H
12#include "llvm/ADT/StringMap.h"
13#include "llvm/Support/Chrono.h"
14#include "llvm/Support/Timer.h"
33 StorageParams(llvm::StringRef ProfilePrefix, llvm::StringRef SourceFile);
37 std::optional<llvm::TimerGroup> TG;
39 std::optional<StorageParams> Storage;
41 void printUserFriendlyTable(llvm::raw_ostream &
OS);
42 void printAsJSON(llvm::raw_ostream &
OS);
44 void storeProfileData();
47 llvm::StringMap<llvm::TimeRecord>
Records;
llvm::StringMap< llvm::TimeRecord > Records
ClangTidyProfiling()=default
Some operations such as code completion produce a set of candidates.
std::string StoreFilename
llvm::sys::TimePoint Timestamp
std::string SourceFilename