Lines Matching refs:summary

295 static std::string GetCommentForSummary(const CounterSummary& summary,  in GetCommentForSummary()  argument
298 const std::string& type_name = summary.event_type->event_type.name; in GetCommentForSummary()
299 const std::string& modifier = summary.event_type->modifier; in GetCommentForSummary()
301 double run_sec = summary.count / 1e9; in GetCommentForSummary()
309 double hz = summary.count / duration_in_sec; in GetCommentForSummary()
312 if (type_name == "instructions" && summary.count != 0) { in GetCommentForSummary()
315 double cycles_per_instruction = t.count * 1.0 / summary.count; in GetCommentForSummary()
331 double miss_rate = summary.count * 1.0 / t.count; in GetCommentForSummary()
336 double rate = summary.count / duration_in_sec; in GetCommentForSummary()
386 CounterSummary summary; in ShowCounters() local
387 summary.event_type = counters_info.event_type; in ShowCounters()
388 summary.count = scaled_count; in ShowCounters()
389 summary.scale = scale; in ShowCounters()
390 summary.readable_count_str = ReadableCountValue(summary.count, *summary.event_type); in ShowCounters()
391 summaries.push_back(summary); in ShowCounters()
394 for (auto& summary : summaries) { in ShowCounters() local
395 summary.comment = GetCommentForSummary(summary, summaries, duration_in_sec); in ShowCounters()
401 for (auto& summary : summaries) { in ShowCounters() local
402 count_column_width = std::max(count_column_width, summary.readable_count_str.size()); in ShowCounters()
403 name_column_width = std::max(name_column_width, summary.event_type->name.size()); in ShowCounters()
404 comment_column_width = std::max(comment_column_width, summary.comment.size()); in ShowCounters()
407 for (auto& summary : summaries) { in ShowCounters() local
409 summary.readable_count_str.c_str(), static_cast<int>(name_column_width), in ShowCounters()
410 summary.event_type->name.c_str(), static_cast<int>(comment_column_width), in ShowCounters()
411 summary.comment.c_str(), 1.0 / summary.scale * 100); in ShowCounters()