Deleted Added
sdiff udiff text old ( 9117:49116b947194 ) new ( 9171:ae88ecf37145 )
full compact
1/*
2 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 44 unchanged lines hidden (view full) ---

53#include "base/hashmap.hh"
54#include "mem/protocol/AccessType.hh"
55#include "mem/protocol/GenericMachineType.hh"
56#include "mem/protocol/GenericRequestType.hh"
57#include "mem/protocol/PrefetchBit.hh"
58#include "mem/protocol/RubyAccessMode.hh"
59#include "mem/protocol/RubyRequestType.hh"
60#include "mem/ruby/common/Address.hh"
61#include "mem/ruby/common/Consumer.hh"
62#include "mem/ruby/common/Global.hh"
63#include "mem/ruby/common/Histogram.hh"
64#include "mem/ruby/common/Set.hh"
65#include "mem/ruby/system/MachineID.hh"
66#include "mem/ruby/system/MemoryControl.hh"
67#include "params/RubyProfiler.hh"
68#include "sim/sim_object.hh"
69
70class RubyRequest;
71class AddressProfiler;
72
73class Profiler : public SimObject, public Consumer
74{
75 public:
76 typedef RubyProfilerParams Params;
77 Profiler(const Params *);
78 ~Profiler();
79
80 void wakeup();
81

--- 157 unchanged lines hidden (view full) ---

239 int m_requests;
240 std::map<std::string, int> m_requestProfileMap;
241
242 //added by SS
243 bool m_hot_lines;
244 bool m_all_instructions;
245
246 int m_num_of_sequencers;
247};
248
249inline std::ostream&
250operator<<(std::ostream& out, const Profiler& obj)
251{
252 obj.print(out);
253 out << std::flush;
254 return out;
255}
256
257#endif // __MEM_RUBY_PROFILER_PROFILER_HH__
258
259