• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:append

3 // SPDX-License-Identifier: MIT
129 int padding = spacingWidth - static_cast<int>(stringToPass.size()); in CentreAlignFormatting()
150 body.append(CentreAlignFormatting(devicePair.second->m_Name, 20)); in PrintDeviceDetails()
151 body.append(" | "); in PrintDeviceDetails()
152 body.append(CentreAlignFormatting(std::to_string(devicePair.first), 13)); in PrintDeviceDetails()
153 body.append(" | "); in PrintDeviceDetails()
154 body.append(CentreAlignFormatting(std::to_string(devicePair.second->m_Cores), 10)); in PrintDeviceDetails()
155 body.append("\n"); in PrintDeviceDetails()
157 std::cout << std::string(body.size(), '-') << "\n"; in PrintDeviceDetails()
165 body.append(CentreAlignFormatting(counterSetPair.second->m_Name, 20)); in PrintCounterSetDetails()
166 body.append(" | "); in PrintCounterSetDetails()
167 body.append(CentreAlignFormatting(std::to_string(counterSetPair.first), 13)); in PrintCounterSetDetails()
168 body.append(" | "); in PrintCounterSetDetails()
169 body.append(CentreAlignFormatting(std::to_string(counterSetPair.second->m_Count), 10)); in PrintCounterSetDetails()
170 body.append("\n"); in PrintCounterSetDetails()
172 std::cout << std::string(body.size(), '-') << "\n"; in PrintCounterSetDetails()
181 body.append(CentreAlignFormatting(counter->m_Name, 20)); in PrintCounterDetails()
182 body.append(" | "); in PrintCounterDetails()
183 body.append(CentreAlignFormatting(counter->m_Description, 50)); in PrintCounterDetails()
184 body.append(" | "); in PrintCounterDetails()
185 body.append(CentreAlignFormatting(counter->m_Units, 14)); in PrintCounterDetails()
186 body.append(" | "); in PrintCounterDetails()
187 body.append(CentreAlignFormatting(std::to_string(counter->m_Uid), 6)); in PrintCounterDetails()
188 body.append(" | "); in PrintCounterDetails()
189 body.append(CentreAlignFormatting(std::to_string(counter->m_MaxCounterUid), 10)); in PrintCounterDetails()
190 body.append(" | "); in PrintCounterDetails()
191 body.append(CentreAlignFormatting(std::to_string(counter->m_Class), 8)); in PrintCounterDetails()
192 body.append(" | "); in PrintCounterDetails()
193 body.append(CentreAlignFormatting(std::to_string(counter->m_Interpolation), 14)); in PrintCounterDetails()
194 body.append(" | "); in PrintCounterDetails()
195 body.append(CentreAlignFormatting(std::to_string(counter->m_Multiplier), 20)); in PrintCounterDetails()
196 body.append(" | "); in PrintCounterDetails()
197 body.append(CentreAlignFormatting(std::to_string(counter->m_CounterSetUid), 16)); in PrintCounterDetails()
198 body.append(" | "); in PrintCounterDetails()
199 body.append(CentreAlignFormatting(std::to_string(counter->m_DeviceUid), 14)); in PrintCounterDetails()
201 body.append("\n"); in PrintCounterDetails()
203 std::cout << std::string(body.size(), '-') << "\n"; in PrintCounterDetails()
214 categoryHeader.append(CentreAlignFormatting("Name", 20)); in PrintCategoryDetails()
215 categoryHeader.append(" | "); in PrintCategoryDetails()
216 categoryHeader.append(CentreAlignFormatting("Event Count", 14)); in PrintCategoryDetails()
217 categoryHeader.append("\n"); in PrintCategoryDetails()
219 categoryBody.append(CentreAlignFormatting(category->m_Name, 20)); in PrintCategoryDetails()
220 categoryBody.append(" | "); in PrintCategoryDetails()
221 categoryBody.append(CentreAlignFormatting(std::to_string(category->m_Counters.size()), 14)); in PrintCategoryDetails()
230 std::cout << std::string(categoryBody.size(), '-') << "\n"; in PrintCategoryDetails()
236 counterHeader.append(CentreAlignFormatting("Counter Name", 20)); in PrintCategoryDetails()
237 counterHeader.append(" | "); in PrintCategoryDetails()
238 counterHeader.append(CentreAlignFormatting("Description", 50)); in PrintCategoryDetails()
239 counterHeader.append(" | "); in PrintCategoryDetails()
240 counterHeader.append(CentreAlignFormatting("Units", 14)); in PrintCategoryDetails()
241 counterHeader.append(" | "); in PrintCategoryDetails()
242 counterHeader.append(CentreAlignFormatting("UID", 6)); in PrintCategoryDetails()
243 counterHeader.append(" | "); in PrintCategoryDetails()
244 counterHeader.append(CentreAlignFormatting("Max UID", 10)); in PrintCategoryDetails()
245 counterHeader.append(" | "); in PrintCategoryDetails()
246 counterHeader.append(CentreAlignFormatting("Class", 8)); in PrintCategoryDetails()
247 counterHeader.append(" | "); in PrintCategoryDetails()
248 counterHeader.append(CentreAlignFormatting("Interpolation", 14)); in PrintCategoryDetails()
249 counterHeader.append(" | "); in PrintCategoryDetails()
250 counterHeader.append(CentreAlignFormatting("Multiplier", 20)); in PrintCategoryDetails()
251 counterHeader.append(" | "); in PrintCategoryDetails()
252 counterHeader.append(CentreAlignFormatting("Counter set UID", 16)); in PrintCategoryDetails()
253 counterHeader.append(" | "); in PrintCategoryDetails()
254 counterHeader.append(CentreAlignFormatting("Device UID", 14)); in PrintCategoryDetails()
255 counterHeader.append("\n"); in PrintCategoryDetails()
258 std::cout << CentreAlignFormatting("EVENTS IN CATEGORY: " + category->m_Name, in PrintCategoryDetails()
263 for (auto& it: category->m_Counters) { in PrintCategoryDetails()
266 PrintCounterDetails(search->second); in PrintCategoryDetails()
275 devicesHeader.append(CentreAlignFormatting("Device name", 20)); in PrintCounterDirectory()
276 devicesHeader.append(" | "); in PrintCounterDirectory()
277 devicesHeader.append(CentreAlignFormatting("UID", 13)); in PrintCounterDirectory()
278 devicesHeader.append(" | "); in PrintCounterDirectory()
279 devicesHeader.append(CentreAlignFormatting("Cores", 10)); in PrintCounterDirectory()
280 devicesHeader.append("\n"); in PrintCounterDirectory()
293 counterSetHeader.append(CentreAlignFormatting("Counter set name", 20)); in PrintCounterDirectory()
294 counterSetHeader.append(" | "); in PrintCounterDirectory()
295 counterSetHeader.append(CentreAlignFormatting("UID", 13)); in PrintCounterDirectory()
296 counterSetHeader.append(" | "); in PrintCounterDirectory()
297 counterSetHeader.append(CentreAlignFormatting("Count", 10)); in PrintCounterDirectory()
298 counterSetHeader.append("\n"); in PrintCounterDirectory()
336 …// Multiple cores available, as max_counter_uid has to be set to: counter_uid + cores - 1, the max… in ThrowIfCantGenerateNextUid()
337 // allowed value for a counter UID is consequently: uint16_t_max - cores + 1 in ThrowIfCantGenerateNextUid()
338 if (uid >= std::numeric_limits<uint16_t>::max() - cores + 1) in ThrowIfCantGenerateNextUid()