gem5
v20.0.0.2
|
#include <profile.hh>
Public Member Functions | |
FunctionProfile (const Loader::SymbolTable *symtab) | |
~FunctionProfile () | |
ProfileNode * | consume (ThreadContext *tc, const StaticInstPtr &inst) |
ProfileNode * | consume (const std::vector< Addr > &stack) |
void | clear () |
void | dump (ThreadContext *tc, std::ostream &out) const |
void | sample (ProfileNode *node, Addr pc) |
Private Attributes | |
Callback * | reset |
const Loader::SymbolTable * | symtab |
ProfileNode | top |
std::map< Addr, Counter > | pc_count |
TheISA::StackTrace | trace |
Definition at line 61 of file profile.hh.
FunctionProfile::FunctionProfile | ( | const Loader::SymbolTable * | symtab | ) |
Definition at line 89 of file profile.cc.
References Stats::registerResetCallback(), and reset.
FunctionProfile::~FunctionProfile | ( | ) |
Definition at line 96 of file profile.cc.
References reset.
void FunctionProfile::clear | ( | ) |
Definition at line 118 of file profile.cc.
References pc_count.
Referenced by ThreadState::profileClear().
|
inline |
Definition at line 82 of file profile.hh.
Referenced by BaseSimpleCPU::postExecute().
ProfileNode * FunctionProfile::consume | ( | const std::vector< Addr > & | stack | ) |
Definition at line 103 of file profile.cc.
References ProfileNode::children, ArmISA::i, and top.
void FunctionProfile::dump | ( | ThreadContext * | tc, |
std::ostream & | out | ||
) | const |
Definition at line 125 of file profile.cc.
References ccprintf(), X86ISA::count, Loader::SymbolTable::end(), Loader::SymbolTable::find(), ArmISA::i, MipsISA::pc, pc_count, and symtab.
Referenced by O3ThreadState< Impl >::dumpFuncProfile(), and SimpleThread::dumpFuncProfile().
void FunctionProfile::sample | ( | ProfileNode * | node, |
Addr | pc | ||
) |
Definition at line 149 of file profile.cc.
References ProfileNode::count, Loader::SymbolTable::end(), Loader::SymbolTable::findNearest(), MipsISA::pc, pc_count, and symtab.
Referenced by ThreadState::profileSample().
Definition at line 67 of file profile.hh.
|
private |
Definition at line 64 of file profile.hh.
Referenced by FunctionProfile(), and ~FunctionProfile().
|
private |
Definition at line 65 of file profile.hh.
|
private |
Definition at line 66 of file profile.hh.
Referenced by consume().
|
private |
Definition at line 68 of file profile.hh.