#
1ef3a778 |
| 04-Jan-2018 |
Max Moroz <mmoroz@chromium.org> |
[llvm-cov] Refactor "export" command implementation and add support for SOURCES.
Summary: Define an interface for Exporter + split JSON exporter into .h and .cpp.
Reviewers: vsk, morehouse
Reviewe
[llvm-cov] Refactor "export" command implementation and add support for SOURCES.
Summary: Define an interface for Exporter + split JSON exporter into .h and .cpp.
Reviewers: vsk, morehouse
Reviewed By: vsk
Subscribers: llvm-commits, Dor1s, kcc
Differential Revision: https://reviews.llvm.org/D41600
llvm-svn: 321815
show more ...
|
#
fe4d9049 |
| 11-Dec-2017 |
Max Moroz <mmoroz@chromium.org> |
[llvm-cov] Add an option for "export" command to emit only file summary data.
Summary: That allows to get the same data as produced by "llvm-cov report", but in JSON format, which is better for furt
[llvm-cov] Add an option for "export" command to emit only file summary data.
Summary: That allows to get the same data as produced by "llvm-cov report", but in JSON format, which is better for further processing by end users.
Reviewers: vsk
Reviewed By: vsk
Differential Revision: https://reviews.llvm.org/D41085
llvm-svn: 320435
show more ...
|
Revision tags: llvmorg-5.0.1, llvmorg-5.0.1-rc3, llvmorg-5.0.1-rc2, llvmorg-5.0.1-rc1 |
|
#
c445e65d |
| 15-Sep-2017 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Make some summary info fields private. NFC.
There's a bug in the way the line and region summary objects are merged. It would have been less likely to occur if those objects kept some dat
[llvm-cov] Make some summary info fields private. NFC.
There's a bug in the way the line and region summary objects are merged. It would have been less likely to occur if those objects kept some data private.
llvm-svn: 313416
show more ...
|
#
b84e4844 |
| 15-Sep-2017 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Remove a redundant field. NFC.
The "NotCovered" fields in the region and line summary structs are redundant. We should remove them to make the code clearer.
As a follow-up, the "NotCover
[llvm-cov] Remove a redundant field. NFC.
The "NotCovered" fields in the region and line summary structs are redundant. We should remove them to make the code clearer.
As a follow-up, the "NotCovered" entries should be removed from the reports as well.
llvm-svn: 313415
show more ...
|
#
72c3a114 |
| 08-Sep-2017 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Fix a lifetime issue
This fixes an issue where a std::string was moved to a constructor which accepted a StringRef.
llvm-svn: 312816
|
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, 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 ...
|
#
7cb9f009 |
| 12-Oct-2016 |
Vedant Kumar <vsk@apple.com> |
[Coverage] Delete some copy constructors (NFC)
llvm-svn: 284064
|
#
bc647985 |
| 23-Sep-2016 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Get rid of all invalid filename references
We used to append filenames into a vector of std::string, and then append a reference to each string into a separate vector. This made it easier
[llvm-cov] Get rid of all invalid filename references
We used to append filenames into a vector of std::string, and then append a reference to each string into a separate vector. This made it easier to work with the getUniqueSourceFiles API. But it's buggy.
std::string has a small-string optimization, so you can't expect to capture a reference to one if you're copying it into a growing vector. Add a test that triggers this invalid reference to std::string scenario, and kill the issue with fire by just using ArrayRef<std::string> everywhere.
llvm-svn: 282281
show more ...
|
#
b8d0694c |
| 19-Sep-2016 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Delete the NonCodeLines field, it was always dead
llvm-svn: 281882
|
#
3c46abb2 |
| 19-Sep-2016 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Teach the coverage exporter about instantiation coverage
While we're at it, re-use the logic from CoverageReport to compute summaries.
llvm-svn: 281877
|
Revision tags: llvmorg-3.9.0, llvmorg-3.9.0-rc3, llvmorg-3.9.0-rc2, llvmorg-3.9.0-rc1 |
|
#
90be9db7 |
| 27-Jul-2016 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Escape '\' in strings when emitting JSON
Test that Windows path separators are escaped properly. Add a round-trip test to verify the JSON produced by the exporter.
llvm-svn: 276832
|
#
7101d73c |
| 26-Jul-2016 |
Vedant Kumar <vsk@apple.com> |
Retry: [llvm-cov] Add support for exporting coverage data to JSON
This enables users to export coverage information as portable JSON for use by analysis tools and storage in document based databases
Retry: [llvm-cov] Add support for exporting coverage data to JSON
This enables users to export coverage information as portable JSON for use by analysis tools and storage in document based databases.
The export sub-command is invoked just like the others:
llvm-cov export -instr-profile path/to/foo.profdata path/to/foo.binary
The resulting JSON contains a list of files and functions. Every file object contains a list of segments, expansions, and a summary of the file's region, function, and line coverage. Every function object contains the function's name and regions. There is also a total summary for the entire object file.
Changes since the initial commit (r276813):
- Fixed the regexes in the tests to handle Windows filepaths.
Patch by Eddie Hurtig!
Differential Revision: https://reviews.llvm.org/D22651
llvm-svn: 276818
show more ...
|
#
d5b7436c |
| 26-Jul-2016 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Add support for exporting coverage data to JSON
This enables users to export coverage information as portable JSON for use by analysis tools and storage in document based databases.
The
[llvm-cov] Add support for exporting coverage data to JSON
This enables users to export coverage information as portable JSON for use by analysis tools and storage in document based databases.
The export sub-command is invoked just like the others:
llvm-cov export -instr-profile path/to/foo.profdata path/to/foo.binary
The resulting JSON contains a list of files and functions. Every file object contains a list of segments, expansions, and a summary of the file's region, function, and line coverage. Every function object contains the function's name and regions. There is also a total summary for the entire object file.
Patch by Eddie Hurtig!
Differential Revision: https://reviews.llvm.org/D22651
llvm-svn: 276813
show more ...
|