• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/llvm/lib/XRay/

Lines Matching refs:Profile

1 //===- Profile.cpp - XRay Profile Abstraction -----------------------------===//
9 // Defines the XRay Profile class representing the latency profile generated by
13 #include "llvm/XRay/Profile.h"
25 Profile::Profile(const Profile &O) {
27 // Profile being initialized, through the Block instances we see.
37 Profile &Profile::operator=(const Profile &O) {
38 Profile P = O;
78 static Expected<std::vector<Profile::FuncID>> readPath(DataExtractor &Extractor,
81 std::vector<Profile::FuncID> Path;
96 static Expected<Profile::Data> readData(DataExtractor &Extractor,
101 Profile::Data D;
121 Error Profile::addBlock(Block &&B) {
131 Expected<std::vector<Profile::FuncID>> Profile::expandPath(PathID P) const {
137 std::vector<Profile::FuncID> Path;
143 Profile::PathID Profile::internPath(ArrayRef<FuncID> P) {
193 Profile mergeProfilesByThread(const Profile &L, const Profile &R) {
194 Profile Merged;
195 using PathDataMap = DenseMap<Profile::PathID, Profile::Data>;
197 using PathDataVector = decltype(Profile::Block::PathData);
198 using ThreadProfileIndexMap = DenseMap<Profile::ThreadID, PathDataMapPtr>;
232 Profile mergeProfilesByStack(const Profile &L, const Profile &R) {
233 Profile Merged;
234 using PathDataMap = DenseMap<Profile::PathID, Profile::Data>;
236 using PathDataVector = decltype(Profile::Block::PathData);
262 Expected<Profile> loadProfile(StringRef Filename) {
282 Profile P;
309 P.addBlock(Profile::Block{Profile::ThreadID{Header.Thread},
321 Profile::FuncID FuncId;
326 Expected<Profile> profileFromTrace(const Trace &T) {
327 Profile P;
333 DenseMap<Profile::ThreadID, std::vector<StackEntry>> ThreadStacks;
334 DenseMap<Profile::ThreadID, DenseMap<Profile::PathID, Profile::Data>>
354 // intern the path into the Profile.
358 SmallVector<Profile::FuncID, 16> Path;
387 // the Profile.
393 std::vector<std::pair<Profile::PathID, Profile::Data>>(