Go to the documentation of this file.
49 for (
int i = 0, size =
stack.size();
i < size; ++
i) {
61 if (it == symtab->
end())
83 const auto *node =
p.second;
84 node->dump(symbol, (intptr_t)node, prof,
os);
98 symtab(_symtab), trace(
std::move(_trace))
107 for (
int i = 0, size =
stack.size();
i < size; ++
i) {
141 top.dump(
"top", 0, *
this,
os);
const_iterator findNearest(Addr addr, Addr &nextaddr) const
Find the nearest symbol equal to or less than the supplied address (e.g., the label for the enclosing...
FunctionProfile(std::unique_ptr< BaseStackTrace > _trace, const Loader::SymbolTable &symtab)
virtual const Loader::SymbolTable & symtab(ThreadContext *tc)=0
const Loader::SymbolTable & symtab
ProfileNode * consume(ThreadContext *tc, const StaticInstPtr &inst)
const_iterator find(Addr address) const
int64_t Counter
Statistics counter type.
std::map< Addr, Counter > pc_count
Workload * workload
OS kernel.
void getSymbol(std::string &symbol, Addr addr, const Loader::SymbolTable *symtab)
void registerResetCallback(const std::function< void()> &callback)
Register a callback that should be called whenever statistics are reset.
void sample(ProfileNode *node, Addr pc)
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
const std::string & name()
void dump(std::ostream &out) const
const_iterator end() const
std::vector< Addr > stack
void dump(const std::string &symbol, uint64_t id, const FunctionProfile &prof, std::ostream &os) const
virtual bool tryGetSymbol(std::string &symbol, Addr addr, const Loader::SymbolTable *symtab)
Overload hash function for BasicBlockRange type.
std::unique_ptr< BaseStackTrace > trace
void ccprintf(cp::Print &print)
virtual BaseCPU * getCpuPtr()=0
virtual System * getSystemPtr()=0
Generated on Wed Sep 30 2020 14:02:09 for gem5 by doxygen 1.8.17