Lines Matching +defs:count +defs:lines
50 uint64_t lines = 0;
59 uint64_t count = 0;
67 std::vector<LineInfo> lines;
278 if (!buf.readInt64(arc->count))
280 arc->src.count += arc->count;
295 fn->treeArcs[i - 1]->src.count += fn->treeArcs[i - 1]->count;
356 /// retrieving the entry block's count.
367 // spanning tree, the count for each unmeasured arc (GCOV_ARC_ON_TREE) can be
399 u.excess += e->count;
407 u.excess -= e->count;
414 u.pred->count = excess;
443 OS << "Block : " << number << " Counter : " << count << "\n";
447 OS << Edge->src.number << " (" << Edge->count << "), ";
455 OS << Edge->dst.number << " (" << Edge->count << "), ";
459 if (!lines.empty()) {
461 for (uint32_t N : lines)
520 // Get the total execution count of loops among blocks on the same line.
521 // Assuming a reducible flow graph, the count is the sum of back edge counts.
526 uint64_t count = 0, d;
541 count += d;
549 return count;
701 SmallSet<uint32_t, 16> lines;
704 if (b.lines.empty())
706 uint32_t maxLineNum = *llvm::max_element(b.lines);
707 if (maxLineNum >= si.lines.size())
708 si.lines.resize(maxLineNum + 1);
709 for (uint32_t lineNum : b.lines) {
710 LineInfo &line = si.lines[lineNum];
711 if (lines.insert(lineNum).second)
712 ++summary.lines;
713 if (b.count && linesExec.insert(lineNum).second)
716 line.count += b.count;
724 uint64_t count = 0;
732 count += arc->count;
737 count += arc->count;
740 arc->cycleCount = arc->count;
743 count += GCOVBlock::getCyclesCount(line.blocks);
744 line.count = count;
746 ++summary->lines;
747 if (line.count != 0)
758 if (count != 0)
760 if (arc->count != 0)
773 for (LineInfo &line : si.lines) {
793 if (lineNum >= si.lines.size()) {
799 const LineInfo &line = si.lines[lineNum];
805 else if (line.count == 0)
808 os << format("%9" PRIu64 ":", line.count);
819 os << format("%9" PRIu64 ":", b->count);
827 uint64_t count = b->succ[0]->count;
829 << formatBranchInfo(options, count, count) << '\n';
843 for (size_t lineNum = 1, size = si.lines.size(); lineNum < size; ++lineNum) {
844 const LineInfo &line = si.lines[lineNum];
848 // lcount:<line>,<count>,<has_unexecuted_blocks>
850 os << "lcount:" << lineNum << ',' << line.count << '\n';
859 b->getCount() ? arc->count ? "taken" : "nottaken" : "notexec";
952 exitCount += arc->count;
968 total += arc->count;
971 << formatBranchInfo(options, arc->count, total) << '\n';
976 double(summary.linesExec) * 100 / summary.lines, summary.lines);