AddressProfiler.hh (6433:0f0f0fbef977) | AddressProfiler.hh (6896:649e40aad897) |
---|---|
1 2/* 3 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 39 unchanged lines hidden (view full) --- 48 49class AccessTraceForAddress; 50class Set; 51template <class KEY_TYPE, class VALUE_TYPE> class Map; 52 53class AddressProfiler { 54public: 55 // Constructors | 1 2/* 3 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions are 8 * met: redistributions of source code must retain the above copyright --- 39 unchanged lines hidden (view full) --- 48 49class AccessTraceForAddress; 50class Set; 51template <class KEY_TYPE, class VALUE_TYPE> class Map; 52 53class AddressProfiler { 54public: 55 // Constructors |
56 AddressProfiler(); | 56 AddressProfiler(int num_of_sequencers); |
57 58 // Destructor 59 ~AddressProfiler(); 60 61 // Public Methods 62 void printStats(ostream& out) const; 63 void clearStats(); 64 --- 25 unchanged lines hidden (view full) --- 90 Histogram m_retryProfileHistoWrite; 91 Histogram m_retryProfileHistoRead; 92 Histogram m_getx_sharing_histogram; 93 Histogram m_gets_sharing_histogram; 94//added by SS 95 bool m_hot_lines; 96 bool m_all_instructions; 97 | 57 58 // Destructor 59 ~AddressProfiler(); 60 61 // Public Methods 62 void printStats(ostream& out) const; 63 void clearStats(); 64 --- 25 unchanged lines hidden (view full) --- 90 Histogram m_retryProfileHistoWrite; 91 Histogram m_retryProfileHistoRead; 92 Histogram m_getx_sharing_histogram; 93 Histogram m_gets_sharing_histogram; 94//added by SS 95 bool m_hot_lines; 96 bool m_all_instructions; 97 |
98 int m_num_of_sequencers; |
|
98}; 99 100// Output operator declaration 101ostream& operator<<(ostream& out, const AddressProfiler& obj); 102 103// ******************* Definitions ******************* 104 105// Output operator definition 106extern inline 107ostream& operator<<(ostream& out, const AddressProfiler& obj) 108{ 109 obj.print(out); 110 out << flush; 111 return out; 112} 113 114#endif //ADDRESSPROFILER_H | 99}; 100 101// Output operator declaration 102ostream& operator<<(ostream& out, const AddressProfiler& obj); 103 104// ******************* Definitions ******************* 105 106// Output operator definition 107extern inline 108ostream& operator<<(ostream& out, const AddressProfiler& obj) 109{ 110 obj.print(out); 111 out << flush; 112 return out; 113} 114 115#endif //ADDRESSPROFILER_H |