Profiler.cc (6154:6bb54dcb940e) | Profiler.cc (6156:76de2027b8ad) |
---|---|
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; --- 693 unchanged lines hidden (view full) --- 702 } 703} 704 705void Profiler::profileConflictingRequests(const Address& addr) 706{ 707 assert(addr == line_address(addr)); 708 Time last_time = m_ruby_start; 709 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; --- 693 unchanged lines hidden (view full) --- 702 } 703} 704 705void Profiler::profileConflictingRequests(const Address& addr) 706{ 707 assert(addr == line_address(addr)); 708 Time last_time = m_ruby_start; 709 if (m_conflicting_map_ptr->exist(addr)) { |
710 Time last_time = m_conflicting_map_ptr->lookup(addr); | 710 last_time = m_conflicting_map_ptr->lookup(addr); |
711 } 712 Time current_time = g_eventQueue_ptr->getTime(); 713 assert (current_time - last_time > 0); 714 m_conflicting_histogram.add(current_time - last_time); 715 m_conflicting_map_ptr->add(addr, current_time); 716} 717 718void Profiler::addSecondaryStatSample(CacheRequestType requestType, AccessModeType type, int msgSize, PrefetchBit pfBit, NodeID id) --- 307 unchanged lines hidden --- | 711 } 712 Time current_time = g_eventQueue_ptr->getTime(); 713 assert (current_time - last_time > 0); 714 m_conflicting_histogram.add(current_time - last_time); 715 m_conflicting_map_ptr->add(addr, current_time); 716} 717 718void Profiler::addSecondaryStatSample(CacheRequestType requestType, AccessModeType type, int msgSize, PrefetchBit pfBit, NodeID id) --- 307 unchanged lines hidden --- |