gem5 v24.0.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 130 of file profile.hh.
gem5::FunctionProfile::FunctionProfile | ( | std::unique_ptr< BaseStackTrace > | _trace, |
const loader::SymbolTable & | symtab ) |
Definition at line 99 of file profile.cc.
References clear(), and gem5::statistics::registerResetCallback().
void gem5::FunctionProfile::clear | ( | ) |
ProfileNode * gem5::FunctionProfile::consume | ( | const std::vector< Addr > & | stack | ) |
Definition at line 107 of file profile.cc.
References gem5::ProfileNode::children, gem5::ArmISA::i, ProfileNode, gem5::X86ISA::stack, and top.
|
inline |
Definition at line 152 of file profile.hh.
References consume(), and trace.
Referenced by consume().
void gem5::FunctionProfile::dump | ( | std::ostream & | out | ) | const |
Definition at line 129 of file profile.cc.
References gem5::ccprintf(), gem5::X86ISA::count, gem5::X86ISA::os, gem5::MipsISA::p, gem5::MipsISA::pc, pc_count, symtab, and trace.
void gem5::FunctionProfile::sample | ( | ProfileNode * | node, |
Addr | pc ) |
Definition at line 148 of file profile.cc.
References gem5::ProfileNode::count, gem5::loader::SymbolTable::end(), gem5::loader::SymbolTable::findNearest(), gem5::MipsISA::pc, pc_count, and symtab.
|
friend |
Definition at line 133 of file profile.hh.
Referenced by consume().
Definition at line 137 of file profile.hh.
|
private |
Definition at line 135 of file profile.hh.
Referenced by dump(), gem5::ProfileNode::dump(), and sample().
|
private |
Definition at line 136 of file profile.hh.
Referenced by consume().
|
private |
Definition at line 138 of file profile.hh.
Referenced by consume(), dump(), and gem5::ProfileNode::dump().