65a66,67
> #include "mem/ruby/system/System.hh"
>
74c76,77
< Profiler::Profiler(const string & name)
---
> Profiler::Profiler(const Params *p)
> : SimObject(p)
76d78
< m_name = name;
85a88,91
> m_hot_lines = p->hot_lines;
> m_all_instructions = p->all_instructions;
>
> RubySystem::m_profiler_ptr = this;
139,149d144
< for (size_t i=0; i<argv.size(); i+=2) {
< if ( argv[i] == "hot_lines") {
< m_hot_lines = (argv[i+1]=="true");
< } else if ( argv[i] == "all_instructions") {
< m_all_instructions = (argv[i+1]=="true");
< }else {
< cerr << "WARNING: Profiler: Unkown configuration parameter: " << argv[i] << endl;
< assert(false);
< }
< }
<
851a847,852
>
> Profiler *
> RubyProfilerParams::create()
> {
> return new Profiler(this);
> }