Changeset View
Changeset View
Standalone View
Standalone View
lib/ProfileData/SampleProf.cpp
Show All 19 Lines | |||||
#include "llvm/Support/ManagedStatic.h" | #include "llvm/Support/ManagedStatic.h" | ||||
#include "llvm/Support/raw_ostream.h" | #include "llvm/Support/raw_ostream.h" | ||||
#include <string> | #include <string> | ||||
#include <system_error> | #include <system_error> | ||||
using namespace llvm; | using namespace llvm; | ||||
using namespace sampleprof; | using namespace sampleprof; | ||||
cl::opt<bool> FlattenedProfileUsed( | |||||
tejohnson: @wmi Would it be possible to record this information in the sample profile file itself? That… | |||||
wmiUnsubmitted Not Done ReplyInline ActionsThat is a possiblity. But have to consider what is the best way to category the information we want to encode. wmi: That is a possiblity. But have to consider what is the best way to category the information we… | |||||
"flattened-profile-used", cl::init(false), cl::Hidden, | |||||
cl::desc("Indicate the sample profile being used is flattened, i.e., " | |||||
"no inline hierachy exists in the profile. ")); | |||||
namespace llvm { | namespace llvm { | ||||
namespace sampleprof { | namespace sampleprof { | ||||
SampleProfileFormat FunctionSamples::Format; | SampleProfileFormat FunctionSamples::Format; | ||||
DenseMap<uint64_t, StringRef> FunctionSamples::GUIDToFuncNameMap; | DenseMap<uint64_t, StringRef> FunctionSamples::GUIDToFuncNameMap; | ||||
Module *FunctionSamples::CurrentModule; | Module *FunctionSamples::CurrentModule; | ||||
} // namespace sampleprof | } // namespace sampleprof | ||||
} // namespace llvm | } // namespace llvm | ||||
▲ Show 20 Lines • Show All 157 Lines • Show Last 20 Lines |
@wmi Would it be possible to record this information in the sample profile file itself? That would be cleaner.