gem5
v20.1.0.0
|
#include <profile.hh>
Public Member Functions | |
FunctionProfile (std::unique_ptr< BaseStackTrace > _trace, const Loader::SymbolTable &symtab) | |
ProfileNode * | consume (ThreadContext *tc, const StaticInstPtr &inst) |
ProfileNode * | consume (const std::vector< Addr > &stack) |
void | clear () |
void | dump (std::ostream &out) const |
void | sample (ProfileNode *node, Addr pc) |
Private Attributes | |
const Loader::SymbolTable & | symtab |
ProfileNode | top |
std::map< Addr, Counter > | pc_count |
std::unique_ptr< BaseStackTrace > | trace |
Friends | |
class | ProfileNode |
Definition at line 127 of file profile.hh.
FunctionProfile::FunctionProfile | ( | std::unique_ptr< BaseStackTrace > | _trace, |
const Loader::SymbolTable & | symtab | ||
) |
Definition at line 96 of file profile.cc.
References clear(), and Stats::registerResetCallback().
void FunctionProfile::clear | ( | ) |
ProfileNode * FunctionProfile::consume | ( | const std::vector< Addr > & | stack | ) |
Definition at line 104 of file profile.cc.
References ProfileNode::children, ArmISA::i, ProfileNode, X86ISA::stack, and top.
|
inline |
Definition at line 149 of file profile.hh.
References trace.
void FunctionProfile::dump | ( | std::ostream & | out | ) | const |
Definition at line 126 of file profile.cc.
References ccprintf(), X86ISA::count, X86ISA::os, MipsISA::p, MipsISA::pc, pc_count, symtab, and trace.
void FunctionProfile::sample | ( | ProfileNode * | node, |
Addr | pc | ||
) |
Definition at line 145 of file profile.cc.
References ProfileNode::count, Loader::SymbolTable::end(), Loader::SymbolTable::findNearest(), MipsISA::pc, pc_count, and symtab.
|
friend |
Definition at line 130 of file profile.hh.
Referenced by consume().
Definition at line 134 of file profile.hh.
|
private |
Definition at line 132 of file profile.hh.
Referenced by ProfileNode::dump(), dump(), and sample().
|
private |
Definition at line 133 of file profile.hh.
Referenced by consume().
|
private |
Definition at line 135 of file profile.hh.
Referenced by consume(), ProfileNode::dump(), and dump().