simpoint.cc (10651:333350e4e334) | simpoint.cc (11359:b0b976a1ceda) |
---|---|
1/* 2 * Copyright (c) 2012-2014 ARM Limited 3 * All rights reserved. 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 112 unchanged lines hidden (view full) --- 121 if (info.count != 0) { 122 counts.push_back(std::make_pair(info.id, info.count)); 123 info.count = 0; 124 } 125 } 126 std::sort(counts.begin(), counts.end()); 127 128 // Print output BBV info | 1/* 2 * Copyright (c) 2012-2014 ARM Limited 3 * All rights reserved. 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 112 unchanged lines hidden (view full) --- 121 if (info.count != 0) { 122 counts.push_back(std::make_pair(info.id, info.count)); 123 info.count = 0; 124 } 125 } 126 std::sort(counts.begin(), counts.end()); 127 128 // Print output BBV info |
129 *simpointStream << "T"; | 129 *simpointStream->stream() << "T"; |
130 for (auto cnt_itr = counts.begin(); cnt_itr != counts.end(); 131 ++cnt_itr) { | 130 for (auto cnt_itr = counts.begin(); cnt_itr != counts.end(); 131 ++cnt_itr) { |
132 *simpointStream << ":" << cnt_itr->first | 132 *simpointStream->stream() << ":" << cnt_itr->first |
133 << ":" << cnt_itr->second << " "; 134 } | 133 << ":" << cnt_itr->second << " "; 134 } |
135 *simpointStream << "\n"; | 135 *simpointStream->stream() << "\n"; |
136 137 intervalDrift = (intervalCount + intervalDrift) - intervalSize; 138 intervalCount = 0; 139 } 140 } 141} 142 143/** SimPoint SimObject */ 144SimPoint* 145SimPointParams::create() 146{ 147 return new SimPoint(this); 148} | 136 137 intervalDrift = (intervalCount + intervalDrift) - intervalSize; 138 intervalCount = 0; 139 } 140 } 141} 142 143/** SimPoint SimObject */ 144SimPoint* 145SimPointParams::create() 146{ 147 return new SimPoint(this); 148} |