AddressProfiler.cc (8174:e21f6e70169e) AddressProfiler.cc (9550:e0e2c8f83d08)
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;

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

95 Histogram remaining_records_log(-1);
96 Histogram all_records_log(-1);
97
98 // Allows us to track how many lines where touched by n processors
99 std::vector<int64> m_touched_vec;
100 std::vector<int64> m_touched_weighted_vec;
101 m_touched_vec.resize(num_of_sequencers+1);
102 m_touched_weighted_vec.resize(num_of_sequencers+1);
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;

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

95 Histogram remaining_records_log(-1);
96 Histogram all_records_log(-1);
97
98 // Allows us to track how many lines where touched by n processors
99 std::vector<int64> m_touched_vec;
100 std::vector<int64> m_touched_weighted_vec;
101 m_touched_vec.resize(num_of_sequencers+1);
102 m_touched_weighted_vec.resize(num_of_sequencers+1);
103 for (int i = 0; i < m_touched_vec.size(); i++) {
104 m_touched_vec[i] = 0;
105 m_touched_weighted_vec[i] = 0;
103 for (int j = 0; j < m_touched_vec.size(); j++) {
104 m_touched_vec[j] = 0;
105 m_touched_weighted_vec[j] = 0;
106 }
107
108 int counter = 0;
109 int max = sorted.size();
110 while (counter < max && counter < records_printed) {
111 const AccessTraceForAddress* record = sorted[counter];
112 double percent = 100.0 * (record->getTotal() / double(misses));
113 out << description << " | " << percent << " % " << *record << endl;

--- 218 unchanged lines hidden ---
106 }
107
108 int counter = 0;
109 int max = sorted.size();
110 while (counter < max && counter < records_printed) {
111 const AccessTraceForAddress* record = sorted[counter];
112 double percent = 100.0 * (record->getTotal() / double(misses));
113 out << description << " | " << percent << " % " << *record << endl;

--- 218 unchanged lines hidden ---