#
3a13ed60 |
| 28-Dec-2017 |
Benjamin Kramer <benny.kra@googlemail.com> |
Avoid int to string conversion in Twine or raw_ostream contexts.
Some output changes from uppercase hex to lowercase hex, no other functionality change intended.
llvm-svn: 321526
|
#
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 |
|
#
4a4bfa4e |
| 13-Oct-2017 |
Max Moroz <mmoroz@chromium.org> |
[llvm-cov] Generate "report" for given source paths if sources are specified.
Summary: Documentation says that user can specify sources for both "show" and "report" commands. "Show" command respects
[llvm-cov] Generate "report" for given source paths if sources are specified.
Summary: Documentation says that user can specify sources for both "show" and "report" commands. "Show" command respects specified sources, but "report" does not. It is useful to have both "show" and "report" generated for specified sources. Also added tests to for both commands with sources specified.
Reviewers: vsk, kcc
Reviewed By: vsk
Differential Revision: https://reviews.llvm.org/D38860
llvm-svn: 315685
show more ...
|
#
ea9dceed |
| 04-Oct-2017 |
Sean Eveson <eveson.sean@gmail.com> |
[llvm-cov] Fix showing title when filtering and not outputting to a directory
Differential Revision: https://reviews.llvm.org/D38507
llvm-svn: 314885
|
#
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 ...
|
#
feb3f527 |
| 25-Sep-2017 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Warn if -show-functions is used without query files
llvm-cov's report mode does not print any output when -show-functions is specified and no source files are specified. This can be surpr
[llvm-cov] Warn if -show-functions is used without query files
llvm-cov's report mode does not print any output when -show-functions is specified and no source files are specified. This can be surprising, so the tool should at least print out an error message when this happens.
rdar://problem/34636859
llvm-svn: 314175
show more ...
|
#
3fc649cb |
| 23-Sep-2017 |
Reid Kleckner <rnk@google.com> |
[Support] Rename tool_output_file to ToolOutputFile, NFC
This class isn't similar to anything from the STL, so it shouldn't use the STL naming conventions.
llvm-svn: 314050
|
#
18dd9e88 |
| 21-Sep-2017 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Improve error messaging for function mismatches
Passing "-dump" to llvm-cov will now print more detailed information about function hash and counter mismatches. This should make it easier
[llvm-cov] Improve error messaging for function mismatches
Passing "-dump" to llvm-cov will now print more detailed information about function hash and counter mismatches. This should make it easier to debug *.profdata files which contain incorrect records, and to debug other scenarios where coverage goes missing due to mismatch issues.
llvm-svn: 313853
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 ...
|
#
208eecd5 |
| 13-Sep-2017 |
Alexander Kornienko <alexfh@google.com> |
Convenience/safety fix for llvm::sys::Execute(And|No)Wait
Summary: Change the type of the Redirects parameter of llvm::sys::ExecuteAndWait, ExecuteNoWait and other APIs that wrap them from `const St
Convenience/safety fix for llvm::sys::Execute(And|No)Wait
Summary: Change the type of the Redirects parameter of llvm::sys::ExecuteAndWait, ExecuteNoWait and other APIs that wrap them from `const StringRef **` to `ArrayRef<Optional<StringRef>>`, which is safer and simplifies the use of these APIs (no more local StringRef variables just to get a pointer to).
Corresponding clang changes will be posted as a separate patch.
Reviewers: bkramer
Reviewed By: bkramer
Subscribers: vsk, llvm-commits
Differential Revision: https://reviews.llvm.org/D37563
llvm-svn: 313155
show more ...
|
#
50479f60 |
| 11-Sep-2017 |
Eli Friedman <efriedma@codeaurora.org> |
[llvm-cov] Allow hiding instantiation/region coverage from summary tables
Region coverage is difficult to explain without going deep into how coverage is implemented. Instantiation coverage is easie
[llvm-cov] Allow hiding instantiation/region coverage from summary tables
Region coverage is difficult to explain without going deep into how coverage is implemented. Instantiation coverage is easier to explain, but probably not useful in most cases (templates don't exist in C, and most C++ code contains relatively few templates).
This patch adds the options "-show-region-summary" and "-show-instantiation-summary" to allow hiding those columns. "-show-instantiation-summary" is turned off by default.
llvm-svn: 312969
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
|
#
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 |
|
#
e15300ec |
| 31-Aug-2017 |
Sean Eveson <eveson.sean@gmail.com> |
[llvm-cov] Read in function names for filtering from a text file.
Summary: Add a -name-whitelist option, which behaves in the same way as -name, but it reads in multiple function names from the give
[llvm-cov] Read in function names for filtering from a text file.
Summary: Add a -name-whitelist option, which behaves in the same way as -name, but it reads in multiple function names from the given input file(s).
Reviewers: vsk
Reviewed By: vsk
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D37111
llvm-svn: 312227
show more ...
|
Revision tags: llvmorg-5.0.0-rc4, llvmorg-5.0.0-rc3 |
|
#
9edfeac9 |
| 14-Aug-2017 |
Sean Eveson <eveson.sean@gmail.com> |
[llvm-cov] Add an option which maps the location of source directories on another machine to your local copies
Summary: This patch adds the -path-equivalence option (example: llvm-cov show -path-equ
[llvm-cov] Add an option which maps the location of source directories on another machine to your local copies
Summary: This patch adds the -path-equivalence option (example: llvm-cov show -path-equivalence=/origin/path,/local/path) which maps the source code path from one machine to another when using `llvm-cov show`. This is similar to the -filename-equivalence option, but doesn't require you to specify all the source files on the command line.
This allows you to generate the coverage data on one machine (e.g. in a CI system), and then use llvm-cov on another machine where you have the same code base on a different path.
Reviewers: vsk
Reviewed By: vsk
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D36391
llvm-svn: 310827
show more ...
|
Revision tags: llvmorg-5.0.0-rc2 |
|
#
8a622388 |
| 04-Aug-2017 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] NFC: make_unique-ify two allocations
llvm-svn: 310011
|
#
dde19c5a |
| 02-Aug-2017 |
Vedant Kumar <vsk@apple.com> |
[Coverage] Add an API to retrive all instantiations of a function (NFC)
The CoverageMapping::getInstantiations() API retrieved all function records corresponding to functions with more than one inst
[Coverage] Add an API to retrive all instantiations of a function (NFC)
The CoverageMapping::getInstantiations() API retrieved all function records corresponding to functions with more than one instantiation (e.g template functions with multiple specializations). However, there was no simple way to determine *which* function a given record was an instantiation of. This was an oversight, since it's useful to aggregate coverage information over all instantiations of a function.
llvm-cov works around this by building a mapping of source locations to instantiation sets, but this duplicates logic that libCoverage already has (see FunctionInstantiationSetCollector).
This change adds a new API, CoverageMapping::getInstantiationGroups(), which returns a list of InstantiationGroups. A group contains records for each instantiation of some particular function, and also provides utilities to get the total execution count within the group, the source location of the common definition, etc.
This lets removes some hacky logic in llvm-cov by reusing FunctionInstantiationSetCollector and makes the CoverageMapping API friendlier for other clients.
llvm-svn: 309904
show more ...
|
#
79554e45 |
| 02-Aug-2017 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Respect the value of the -show-instantiations option
Make `-show-instantiations=false` actually skip displaying instantiation sub-views, instead of simply ignoring the option.
llvm-svn:
[llvm-cov] Respect the value of the -show-instantiations option
Make `-show-instantiations=false` actually skip displaying instantiation sub-views, instead of simply ignoring the option.
llvm-svn: 309903
show more ...
|
#
4b102c3d |
| 01-Aug-2017 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Allow specifying distinct architectures for each loaded binary
The coverage tool needs to know which slice to look at when it's handed a universal binary. Some projects need to look at ag
[llvm-cov] Allow specifying distinct architectures for each loaded binary
The coverage tool needs to know which slice to look at when it's handed a universal binary. Some projects need to look at aggregate coverage reports for a variety of slices in different binaries: this patch adds support for these kinds of projects to llvm-cov.
rdar://problem/33579007
llvm-svn: 309747
show more ...
|
Revision tags: llvmorg-5.0.0-rc1 |
|
#
7fa75105 |
| 11-Jul-2017 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Add a cl::opt to control the number of threads
When an output directory is specified, llvm-cov spawns some threads to speed up the process of writing out file reports. Add an option which
[llvm-cov] Add a cl::opt to control the number of threads
When an output directory is specified, llvm-cov spawns some threads to speed up the process of writing out file reports. Add an option which allows users to control how many threads llvm-cov uses.
A CommandGuide.rst update + test is included.
llvm-svn: 307609
show more ...
|
Revision tags: 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 |
|
#
431359aa |
| 28-Feb-2017 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Error-out when an unsupported format is used (PR32087)
llvm-svn: 296487
|
#
9e015daf |
| 19-Feb-2017 |
Igor Kudrin <ikudrin@accesssoftek.com> |
[llvm-cov] Respect Windows line endings when parsing demangled symbols.
Differential Revision: https://reviews.llvm.org/D30096
llvm-svn: 295605
|
Revision tags: llvmorg-4.0.0-rc2 |
|
#
62eb0fdb |
| 05-Feb-2017 |
Vedant Kumar <vsk@apple.com> |
[llvm-cov] Don't show function summaries when filtering by filename (fixes PR31395)
llvm-svn: 294137
|