StoreTrace.cc (9171:ae88ecf37145) StoreTrace.cc (10302:0e9e99e6369a)
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;

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

122 m_last_store = current;
123 m_stores_this_interval++;
124}
125
126void
127StoreTrace::downgrade(NodeID node)
128{
129 if (node == m_last_writer) {
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;

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

122 m_last_store = current;
123 m_stores_this_interval++;
124}
125
126void
127StoreTrace::downgrade(NodeID node)
128{
129 if (node == m_last_writer) {
130 Time current = curTick();
130 Tick current = curTick();
131 assert(m_stores_this_interval != 0);
132 assert(m_last_store != 0);
133 assert(m_first_store != 0);
134 assert(m_last_writer != -1);
135
136 // Per line stats
137 m_store_first_to_stolen.add(current - m_first_store);
138 m_store_count.add(m_stores_this_interval);

--- 19 unchanged lines hidden ---
131 assert(m_stores_this_interval != 0);
132 assert(m_last_store != 0);
133 assert(m_first_store != 0);
134 assert(m_last_writer != -1);
135
136 // Per line stats
137 m_store_first_to_stolen.add(current - m_first_store);
138 m_store_count.add(m_stores_this_interval);

--- 19 unchanged lines hidden ---