Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Unified Diff: tools/parse_llvm_coverage.py

Issue 1246043002: Coverage: add a trace for not_covered_lines per file (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix key, tweak naming Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/parse_llvm_coverage.py
diff --git a/tools/parse_llvm_coverage.py b/tools/parse_llvm_coverage.py
index 2eadddd3cb1f7615758df257d92b5955648462c2..ac8ba51fbf59bac20ba6b68e6dffd4f93d733236 100755
--- a/tools/parse_llvm_coverage.py
+++ b/tools/parse_llvm_coverage.py
@@ -103,16 +103,24 @@ def _nanobench_json(results, properties, key):
# dict containing those keys.
rv.update(properties)
rv['key'] = key
+ rv['key'].update({'source_type': 'coverage'})
rv['results'] = {
_testname(f): {
- 'coverage': {
mtklein 2015/07/22 12:20:26 Am I remembering this format wrong or do we want i
borenet 2015/07/22 13:01:59 So one of my concerns was preventing clustering wi
- 'percent': percent,
+ 'covered_percent': {
+ 'value': percent,
'options': {
'fullname': f,
'dir': os.path.dirname(f),
},
},
- } for percent, f in results
+ 'lines_not_covered': {
+ 'value': not_covered_lines,
+ 'options': {
+ 'fullname': f,
+ 'dir': os.path.dirname(f),
+ },
+ },
+ } for percent, not_covered_lines, f in results
}
return rv
@@ -150,6 +158,7 @@ def _get_per_file_summaries(line_by_line):
covered_lines += 1
if total_lines > 0:
per_file.append((float(covered_lines)/float(total_lines)*100.0,
+ total_lines - covered_lines,
filepath))
return per_file
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698