Profiler.cc (9350:ddb946b131c8) Profiler.cc (9465:4ae4f3f4b870)
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;

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

132
133 out << endl;
134
135 if (m_all_instructions) {
136 m_inst_profiler_ptr->printStats(out);
137 }
138
139 //g_system_ptr->getNetwork()->printStats(out);
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;

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

132
133 out << endl;
134
135 if (m_all_instructions) {
136 m_inst_profiler_ptr->printStats(out);
137 }
138
139 //g_system_ptr->getNetwork()->printStats(out);
140 schedule(m_event, g_system_ptr->clockEdge(Cycles(m_stats_period )));
140 schedule(m_event, g_system_ptr->clockEdge(Cycles(m_stats_period)));
141}
142
143void
144Profiler::setPeriodicStatsFile(const string& filename)
145{
146 cout << "Recording periodic statistics to file '" << filename << "' every "
147 << m_stats_period << " Ruby cycles" << endl;
148

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

566 if (number_contacted == 0) {
567 m_memory_to_cache++;
568 } else {
569 m_cache_to_cache++;
570 }
571}
572
573void
141}
142
143void
144Profiler::setPeriodicStatsFile(const string& filename)
145{
146 cout << "Recording periodic statistics to file '" << filename << "' every "
147 << m_stats_period << " Ruby cycles" << endl;
148

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

566 if (number_contacted == 0) {
567 m_memory_to_cache++;
568 } else {
569 m_cache_to_cache++;
570 }
571}
572
573void
574Profiler::profileMsgDelay(int virtualNetwork, int delayCycles)
574Profiler::profileMsgDelay(uint32_t virtualNetwork, Time delayCycles)
575{
576 assert(virtualNetwork < m_delayedCyclesVCHistograms.size());
577 m_delayedCyclesHistogram.add(delayCycles);
578 m_delayedCyclesVCHistograms[virtualNetwork].add(delayCycles);
579 if (virtualNetwork != 0) {
580 m_delayedCyclesNonPFHistogram.add(delayCycles);
581 }
582}

--- 162 unchanged lines hidden ---
575{
576 assert(virtualNetwork < m_delayedCyclesVCHistograms.size());
577 m_delayedCyclesHistogram.add(delayCycles);
578 m_delayedCyclesVCHistograms[virtualNetwork].add(delayCycles);
579 if (virtualNetwork != 0) {
580 m_delayedCyclesNonPFHistogram.add(delayCycles);
581 }
582}

--- 162 unchanged lines hidden ---