Profiler.cc (6285:ce086eca1ede) | Profiler.cc (6288:083a6806dd96) |
---|---|
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; --- 808 unchanged lines hidden (view full) --- 817 } 818} 819 820void Profiler::profileConflictingRequests(const Address& addr) 821{ 822 assert(addr == line_address(addr)); 823 Time last_time = m_ruby_start; 824 if (m_conflicting_map_ptr->exist(addr)) { | 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; --- 808 unchanged lines hidden (view full) --- 817 } 818} 819 820void Profiler::profileConflictingRequests(const Address& addr) 821{ 822 assert(addr == line_address(addr)); 823 Time last_time = m_ruby_start; 824 if (m_conflicting_map_ptr->exist(addr)) { |
825 Time last_time = m_conflicting_map_ptr->lookup(addr); | 825 last_time = m_conflicting_map_ptr->lookup(addr); |
826 } 827 Time current_time = g_eventQueue_ptr->getTime(); 828 assert (current_time - last_time > 0); 829 m_conflicting_histogram.add(current_time - last_time); 830 m_conflicting_map_ptr->add(addr, current_time); 831} 832 833void Profiler::addSecondaryStatSample(CacheRequestType requestType, AccessModeType type, int msgSize, PrefetchBit pfBit, NodeID id) --- 266 unchanged lines hidden (view full) --- 1100 return GenericRequestType_NULL; 1101 break; 1102 default: 1103 ERROR_MSG("Unexpected cache request type"); 1104 } 1105} 1106 1107void Profiler::rubyWatch(int id){ | 826 } 827 Time current_time = g_eventQueue_ptr->getTime(); 828 assert (current_time - last_time > 0); 829 m_conflicting_histogram.add(current_time - last_time); 830 m_conflicting_map_ptr->add(addr, current_time); 831} 832 833void Profiler::addSecondaryStatSample(CacheRequestType requestType, AccessModeType type, int msgSize, PrefetchBit pfBit, NodeID id) --- 266 unchanged lines hidden (view full) --- 1100 return GenericRequestType_NULL; 1101 break; 1102 default: 1103 ERROR_MSG("Unexpected cache request type"); 1104 } 1105} 1106 1107void Profiler::rubyWatch(int id){ |
1108 int rn_g1 = 0;//SIMICS_get_register_number(id, "g1"); | 1108 //int rn_g1 = 0;//SIMICS_get_register_number(id, "g1"); |
1109 uint64 tr = 0;//SIMICS_read_register(id, rn_g1); 1110 Address watch_address = Address(tr); 1111 const int ID_SPACES = 3; 1112 const int TIME_SPACES = 7; 1113 1114 (* debug_cout_ptr).flags(ios::right); 1115 (* debug_cout_ptr) << setw(TIME_SPACES) << g_eventQueue_ptr->getTime() << " "; 1116 (* debug_cout_ptr) << setw(ID_SPACES) << id << " " --- 38 unchanged lines hidden --- | 1109 uint64 tr = 0;//SIMICS_read_register(id, rn_g1); 1110 Address watch_address = Address(tr); 1111 const int ID_SPACES = 3; 1112 const int TIME_SPACES = 7; 1113 1114 (* debug_cout_ptr).flags(ios::right); 1115 (* debug_cout_ptr) << setw(TIME_SPACES) << g_eventQueue_ptr->getTime() << " "; 1116 (* debug_cout_ptr) << setw(ID_SPACES) << id << " " --- 38 unchanged lines hidden --- |