# LLVM development trunk - code coverage - branch coverage missing

**URL:** <https://discourse.llvm.org/t/llvm-development-trunk-code-coverage-branch-coverage-missing/46049>\
**Category:** LLVM Dev List Archives\
**Created:** [August 23, 2017, 5:45pm UTC](https://discourse.llvm.org/t/llvm-development-trunk-code-coverage-branch-coverage-missing/46049 "2017-08-23T17:45:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ravi](https://avatars.discourse-cdn.com/v4/letter/r/58956e/32.png) [@ravi](https://discourse.llvm.org/u/ravi)\
**Post date:** [August 23, 2017, 5:45pm UTC](https://discourse.llvm.org/t/llvm-development-trunk-code-coverage-branch-coverage-missing/46049/1 "2017-08-23T17:45:04Z")

</div>

Hi ,

I could see the LLVM code coverage info at the below links

[http://lab.llvm.org:8080/coverage/coverage-reports/clang/index.html](http://lab.llvm.org:8080/coverage/coverage-reports/clang/index.html)

[http://llvm.org/reports/coverage/](http://llvm.org/reports/coverage/)

I am interested in the branch coverage metric. I could not find the branch coverage related info .

Can anyone let me know how to find it.

If it is not available , I am happy to work on it, if I can get some details on why currently branch coverage metric is not available

Thanks,

Ravi

---

<div class="post-metadata">

**Author:** ![Eli\_Friedman](https://avatars.discourse-cdn.com/v4/letter/e/e19adc/32.png) [@Eli\_Friedman](https://discourse.llvm.org/u/Eli_Friedman)\
**Post date:** [August 24, 2017, 7:53pm UTC](https://discourse.llvm.org/t/llvm-development-trunk-code-coverage-branch-coverage-missing/46049/2 "2017-08-24T19:53:21Z")

</div>

is generated using lcov (on top of LLVM’s gcov emulation, I think?).Â lcov has support for something it calls “branch coverage”, but it’s buggy; when I tried to generate a report with it enabled, it hung. is generated using LLVM source-based code coverage ().Â Currently, it doesn’t have any support for decision coverage. -Eli

---

<div class="post-metadata">

**Author:** ![ravi](https://avatars.discourse-cdn.com/v4/letter/r/58956e/32.png) [@ravi](https://discourse.llvm.org/u/ravi)\
**Post date:** [August 24, 2017, 8:30pm UTC](https://discourse.llvm.org/t/llvm-development-trunk-code-coverage-branch-coverage-missing/46049/3 "2017-08-24T20:30:08Z")

</div>

Hi Eli , Vedant ,

> > lcov has support for something it calls “branch coverage”, but it’s buggy; when I tried to generate a report with it enabled, it hung.

Thanks for your reply.

Even I observed the same behavior with Lcov.

Vedant pointed out that “region coverage metric in the coverage summary” will have some info related to branch coverage.

I am planning to explore it , I will get back with details.

–Ravi
