AccessTraceForAddress.cc (7055:4e24742201d7) AccessTraceForAddress.cc (7455:586f99bf0dc4)
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;

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

24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#include "mem/ruby/common/Histogram.hh"
30#include "mem/ruby/profiler/AccessTraceForAddress.hh"
31
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;

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

24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#include "mem/ruby/common/Histogram.hh"
30#include "mem/ruby/profiler/AccessTraceForAddress.hh"
31
32AccessTraceForAddress::AccessTraceForAddress()
33{
34 m_histogram_ptr = NULL;
35}
36
37AccessTraceForAddress::AccessTraceForAddress(const Address& addr)
38{
39 m_addr = addr;
40 m_total = 0;
41 m_loads = 0;
42 m_stores = 0;
43 m_atomics = 0;
44 m_user = 0;
45 m_sharing = 0;
46 m_histogram_ptr = NULL;
47}
48
49AccessTraceForAddress::~AccessTraceForAddress()
50{
32AccessTraceForAddress::~AccessTraceForAddress()
33{
51 if (m_histogram_ptr != NULL) {
34 if (m_histogram_ptr) {
52 delete m_histogram_ptr;
53 m_histogram_ptr = NULL;
54 }
55}
56
57void
58AccessTraceForAddress::print(std::ostream& out) const
59{

--- 62 unchanged lines hidden ---
35 delete m_histogram_ptr;
36 m_histogram_ptr = NULL;
37 }
38}
39
40void
41AccessTraceForAddress::print(std::ostream& out) const
42{

--- 62 unchanged lines hidden ---