gem5
|
#include <profile.hh>
Public Member Functions | |
FunctionProfile (const 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 SymbolTable * | symtab |
ProfileNode | top |
std::map< Addr, Counter > | pc_count |
TheISA::StackTrace | trace |
Definition at line 63 of file profile.hh.
FunctionProfile::FunctionProfile | ( | const SymbolTable * | symtab | ) |
Definition at line 88 of file profile.cc.
References Stats::registerResetCallback(), and reset.
FunctionProfile::~FunctionProfile | ( | ) |
Definition at line 95 of file profile.cc.
References reset.
void FunctionProfile::clear | ( | ) |
Definition at line 117 of file profile.cc.
References ProfileNode::clear(), pc_count, and top.
Referenced by ThreadState::profileClear().
|
inline |
Definition at line 84 of file profile.hh.
References trace.
Referenced by BaseSimpleCPU::postExecute().
ProfileNode * FunctionProfile::consume | ( | const std::vector< Addr > & | stack | ) |
Definition at line 102 of file profile.cc.
References ProfileNode::children, ArmISA::i, X86ISA::size(), and top.
void FunctionProfile::dump | ( | ThreadContext * | tc, |
std::ostream & | out | ||
) | const |
Definition at line 124 of file profile.cc.
References ccprintf(), X86ISA::count, ProfileNode::dump(), SymbolTable::findSymbol(), ArmISA::i, pc, pc_count, symtab, and top.
Referenced by O3ThreadState< Impl >::dumpFuncProfile(), and SimpleThread::dumpFuncProfile().
void FunctionProfile::sample | ( | ProfileNode * | node, |
Addr | pc | ||
) |
Definition at line 146 of file profile.cc.
References ProfileNode::count, SymbolTable::findNearestAddr(), pc, pc_count, and symtab.
Referenced by ThreadState::profileSample().
Definition at line 69 of file profile.hh.
|
private |
Definition at line 66 of file profile.hh.
Referenced by FunctionProfile(), and ~FunctionProfile().
|
private |
Definition at line 67 of file profile.hh.
|
private |
Definition at line 68 of file profile.hh.
|
private |
Definition at line 70 of file profile.hh.
Referenced by consume().