#
1963f51f |
| 14-Oct-2017 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Factor out logic to iterate over line coverage stats (NFC)
There were two copies of the logic needed to construct a line stats object for each line in a range: this patch brings it down t
[llvm-cov] Factor out logic to iterate over line coverage stats (NFC)
There were two copies of the logic needed to construct a line stats object for each line in a range: this patch brings it down to one. In the future, this will make it easier for IDE clients to display coverage in-line in source editors. To do that, we just need to move the new LineCoverageIterator class to libCoverage.
llvm-svn: 315789
show more ...
|
#
fa8ef35e |
| 28-Sep-2017 |
Sean Eveson <eveson.sean@gmail.com> |
[llvm-cov] Create directory structure when filtering using -name*= options
Before this change using any of the -name*= command line options with an output directory would result in a single file (fu
[llvm-cov] Create directory structure when filtering using -name*= options
Before this change using any of the -name*= command line options with an output directory would result in a single file (functions.txt/functions.html) containing the coverage for those specific functions. Now you get the same directory structure as when not using any -name*= options.
Differential Revision: https://reviews.llvm.org/D38280
llvm-svn: 314396
show more ...
|
#
1439fa62 |
| 27-Sep-2017 |
Sean Eveson <eveson.sean@gmail.com> |
Revert "[llvm-cov] Create directory structure when filtering using -name*= options"
Test failures.
llvm-svn: 314314
|
#
51b81747 |
| 27-Sep-2017 |
Sean Eveson <eveson.sean@gmail.com> |
[llvm-cov] Create directory structure when filtering using -name*= options
Before this change using any of the -name*= command line options with an output directory would result in a single file (fu
[llvm-cov] Create directory structure when filtering using -name*= options
Before this change using any of the -name*= command line options with an output directory would result in a single file (functions.txt/functions.html) containing the coverage for those specific functions. Now you get the same directory structure as when not using any -name*= options.
Differential Revision: https://reviews.llvm.org/D38280
llvm-svn: 314310
show more ...
|
#
b7fdaf2c |
| 19-Sep-2017 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Make report metrics agree with line exec counts, fixes PR34615
Use the same logic as the line-oriented coverage view to determine the number of covered lines in a function.
Fixes llvm.or
[llvm-cov] Make report metrics agree with line exec counts, fixes PR34615
Use the same logic as the line-oriented coverage view to determine the number of covered lines in a function.
Fixes llvm.org/PR34615.
llvm-svn: 313604
show more ...
|
#
ad8f637b |
| 18-Sep-2017 |
Vedant Kumar <vsk@apple.com> |
[Coverage] Use gap regions to select better line exec counts
After clang started emitting deferred regions (r312818), llvm-cov has had a hard time picking reasonable line execuction counts. There ha
[Coverage] Use gap regions to select better line exec counts
After clang started emitting deferred regions (r312818), llvm-cov has had a hard time picking reasonable line execuction counts. There have been one or two generic improvements in this area (e.g r310012), but line counts can still report coverage for whitespace instead of code (llvm.org/PR34612).
To fix the problem:
* Introduce a new region kind so that frontends can explicitly label gap areas.
This is done by changing the encoding of the columnEnd field of MappingRegion. This doesn't substantially increase binary size, and makes it easy to maintain backwards-compatibility.
* Don't set the line count to a count from a gap area, unless the count comes from a wrapped segment.
* Don't highlight gap areas as uncovered.
Fixes llvm.org/PR34612.
llvm-svn: 313597
show more ...
|
#
25710a66 |
| 18-Sep-2017 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Simplify code to find the first uncovered segment. NFC.
Now that that segment builder is guaranteed to produce segments in sorted order, we don't need a linear scan to get the right resul
[llvm-cov] Simplify code to find the first uncovered segment. NFC.
Now that that segment builder is guaranteed to produce segments in sorted order, we don't need a linear scan to get the right result.
llvm-svn: 313595
show more ...
|
#
71bc1afa |
| 11-Sep-2017 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Don't attach exec counts to lines which start a skipped region
These lines by definition don't have an execution count.
This is the final part of the fix for: https://bugs.llvm.org/show_
[llvm-cov] Don't attach exec counts to lines which start a skipped region
These lines by definition don't have an execution count.
This is the final part of the fix for: https://bugs.llvm.org/show_bug.cgi?id=34166
llvm-svn: 312955
show more ...
|
#
933b37f9 |
| 08-Sep-2017 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Unify region marker placement between text/html modes
Make sure that the text and html emitters always emit the same set of region markers, and avoid emitting redundant markers for line s
[llvm-cov] Unify region marker placement between text/html modes
Make sure that the text and html emitters always emit the same set of region markers, and avoid emitting redundant markers for line segments which don't end on the line they start on.
This is related to D35925, and depends on D36014
Differential Revision: https://reviews.llvm.org/D36020
llvm-svn: 312813
show more ...
|
Revision tags: llvmorg-5.0.0, llvmorg-5.0.0-rc5, llvmorg-5.0.0-rc4, llvmorg-5.0.0-rc3, llvmorg-5.0.0-rc2 |
|
#
846b985a |
| 04-Aug-2017 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Ignore unclosed line segments when setting line counts
This patch makes a slight change to the way llvm-cov determines line execution counts. If there are multiple line segments on a line
[llvm-cov] Ignore unclosed line segments when setting line counts
This patch makes a slight change to the way llvm-cov determines line execution counts. If there are multiple line segments on a line, the line count is the max count among the regions which start *and* end on the line. This avoids an issue posed by deferred regions which start on the same line as a terminated region, e.g:
if (false) return; //< The line count should be 0, even though a new region //< starts at the semi-colon. foo();
Another change is that counts from line segments which don't correspond to region entries are considered. This enables the first change, and corrects an outstanding issue (see the showLineExecutionCounts.cpp test change).
This is related to D35925.
Testing: check-profile, llvm-cov lit tests
Differential Revision: https://reviews.llvm.org/D36014
llvm-svn: 310012
show more ...
|
Revision tags: llvmorg-5.0.0-rc1, llvmorg-4.0.1, llvmorg-4.0.1-rc3, llvmorg-4.0.1-rc2, llvmorg-4.0.1-rc1, llvmorg-4.0.0, llvmorg-4.0.0-rc4, llvmorg-4.0.0-rc3, llvmorg-4.0.0-rc2, llvmorg-4.0.0-rc1, llvmorg-3.9.1, llvmorg-3.9.1-rc3, llvmorg-3.9.1-rc2, llvmorg-3.9.1-rc1 |
|
#
5c61c703 |
| 25-Oct-2016 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Do not print out the filename of the object file
When we load coverage data from multiple objects, we don't have a way to attribute a source object to a function record. Printing out the
[llvm-cov] Do not print out the filename of the object file
When we load coverage data from multiple objects, we don't have a way to attribute a source object to a function record. Printing out the object filename next to the source filename is already not very useful: soon, it'll actually become misleading. Stop printing out the filename now.
llvm-svn: 285043
show more ...
|
#
408866ca |
| 15-Sep-2016 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Move some layout logic to the right spot (NFC)
llvm-svn: 281590
|
#
b2edd11f |
| 15-Sep-2016 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Make a method name more accurate (NFC)
llvm-svn: 281581
|
#
2f5a3dce |
| 15-Sep-2016 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Don't print a verbose title when looking at one file
Having the same title, timestamp, etc. occur repeatedly creates an unnecessary distraction when paging through a report.
llvm-svn: 28
[llvm-cov] Don't print a verbose title when looking at one file
Having the same title, timestamp, etc. occur repeatedly creates an unnecessary distraction when paging through a report.
llvm-svn: 281579
show more ...
|
#
b1c174aa |
| 10-Sep-2016 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Move the 'jump to first unexecuted line' link
Having it in the same row as the source name is jarring. Move it next to the "Source" column label.
llvm-svn: 281146
|
#
7b9e9bb4 |
| 10-Sep-2016 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Minor visual tweaks for html reports
- Change the location of the 'Region Coverage' column. - Use less css and text for some labels.
llvm-svn: 281145
|
#
aae0ba70 |
| 09-Sep-2016 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Constify some methods (NFC)
llvm-svn: 281010
|
#
0053c0b6 |
| 08-Sep-2016 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Use less space to describe source names
In r279628, we made SourceCoverageView list the binary associated with a view and started adding labels (e.g "Source: foo" or "Function: bar") to e
[llvm-cov] Use less space to describe source names
In r279628, we made SourceCoverageView list the binary associated with a view and started adding labels (e.g "Source: foo" or "Function: bar") to everything. Condense this information a bit to unclutter reports.
llvm-svn: 280896
show more ...
|
#
24e91bd0 |
| 06-Sep-2016 |
Ying Yi <maggieyi666@gmail.com> |
[llvm-cov] Add the project summary to the text coverage report for each source file.
This patch is a spin-off from https://reviews.llvm.org/D23922. It extends the text view to preserve the same feat
[llvm-cov] Add the project summary to the text coverage report for each source file.
This patch is a spin-off from https://reviews.llvm.org/D23922. It extends the text view to preserve the same feature as the html view.
Differential Revision: https://reviews.llvm.org/D24241
llvm-svn: 280756
show more ...
|
#
d36b47c4 |
| 06-Sep-2016 |
Ying Yi <maggieyi666@gmail.com> |
[llvm-cov] Add the "Go to first unexecuted line" feature.
This patch provides easy navigation to find the zero count lines, especially useful when the source file is very large.
Differential Revisi
[llvm-cov] Add the "Go to first unexecuted line" feature.
This patch provides easy navigation to find the zero count lines, especially useful when the source file is very large.
Differential Revision: https://reviews.llvm.org/D23277
llvm-svn: 280739
show more ...
|
#
76eb219c |
| 30-Aug-2016 |
Ying Yi <maggieyi666@gmail.com> |
[llvm-cov] Use the native path in the coverage report.
The coverage reports contain the source or binary file paths. On Windows, the file path might contain the seperators of both '/' and '\'. This
[llvm-cov] Use the native path in the coverage report.
The coverage reports contain the source or binary file paths. On Windows, the file path might contain the seperators of both '/' and '\'. This patch uses the native path in the coverage reports. For example, on Windows, all '/' are converted to '\'.
Differential Revision: https://reviews.llvm.org/D23922
llvm-svn: 280061
show more ...
|
Revision tags: llvmorg-3.9.0, llvmorg-3.9.0-rc3 |
|
#
84dc971e |
| 24-Aug-2016 |
Ying Yi <maggieyi666@gmail.com> |
[llvm-cov] Add the project summary to each source file coverage report.
This patch includes the following changes: - Included header "Code coverage report" and include the date that the report was c
[llvm-cov] Add the project summary to each source file coverage report.
This patch includes the following changes: - Included header "Code coverage report" and include the date that the report was created. - Included title (as specified in a command line option, (i.e llvm-cov -project-title="Simple Test") - In the summary, list the elf files that the source code file has contributed to. - Used column heading for "Line No.", "Count No.", Source".
Differential Revision: https://reviews.llvm.org/D23345
llvm-svn: 279628
show more ...
|
Revision tags: llvmorg-3.9.0-rc2 |
|
#
6b1f5f89 |
| 09-Aug-2016 |
Ying Yi <maggieyi666@gmail.com> |
[llvm-cov] Swapped the line and count columns.
In the coverage report, the line and count columns have been swapped to make it more readable. A follow-up commit in compiler-rt is needed
Differenti
[llvm-cov] Swapped the line and count columns.
In the coverage report, the line and count columns have been swapped to make it more readable. A follow-up commit in compiler-rt is needed
Differential Revision: https://reviews.llvm.org/D23281
llvm-svn: 278152
show more ...
|
Revision tags: llvmorg-3.9.0-rc1 |
|
#
4c01092a |
| 06-Jul-2016 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Add support for creating html reports
Based on a patch by Harlan Haskins!
Differential Revision: http://reviews.llvm.org/D18278
llvm-svn: 274688
|
#
d6d192cd |
| 29-Jun-2016 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Use relative paths to file reports in -output-dir mode
This makes it possible to e.g copy a report to another filesystem.
llvm-svn: 274173
|