Bug 84330 - Script to collect coverage infos after running run-webkit-tests
Summary: Script to collect coverage infos after running run-webkit-tests
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 420+
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords: Qt
Depends on:
Blocks: 78701
  Show dependency treegraph
 
Reported: 2012-04-19 05:15 PDT by Langó László
Modified: 2014-02-03 03:50 PST (History)
2 users (show)

See Also:


Attachments
first draft patch (4.81 KB, patch)
2012-04-23 00:19 PDT, Langó László
no flags Details | Formatted Diff | Diff
Second version (4.33 KB, patch)
2012-05-25 01:44 PDT, Langó László
no flags Details | Formatted Diff | Diff
3rd version (4.84 KB, patch)
2012-05-30 00:58 PDT, Langó László
no flags Details | Formatted Diff | Diff
4th version (4.43 KB, patch)
2012-05-30 02:36 PDT, Langó László
no flags Details | Formatted Diff | Diff
reworked version (6.69 KB, patch)
2012-11-11 23:54 PST, Zoltan Arvai
no flags Details | Formatted Diff | Diff
reworked version (4.97 KB, patch)
2012-11-13 04:35 PST, Zoltan Arvai
no flags Details | Formatted Diff | Diff
reworked version (6.82 KB, patch)
2012-11-13 04:38 PST, Zoltan Arvai
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Langó László 2012-04-19 05:15:01 PDT
This script makes csv files from the gathered coverage data what can you import to your database.
 Output:
   - functions.csv
   - testcases.csv
   - coverage.csv
Comment 1 Langó László 2012-04-23 00:19:15 PDT
Created attachment 138302 [details]
first draft patch
Comment 2 Csaba Osztrogonác 2012-05-24 05:06:10 PDT
Comment on attachment 138302 [details]
first draft patch

View in context: https://bugs.webkit.org/attachment.cgi?id=138302&action=review

The runtime was 28 minutes for me, but I'm afraid 
a little bit beacuse of the 15G memory consumption.

> Tools/Scripts/generate-coverage-database-files:13
> +libQtWebKit = builddir + '/Release/lib/libQtWebKit.so.4.10.0'

It is libQtWebKit.so.4.8.0 for me with Qt 4.8.0 and libQtWebKit.so.5.0.0 with Qt 5.

> Tools/Scripts/generate-coverage-database-files:16
> +resultsdir = builddir + '/Release/methodcoverage/results'

But the instrumenter dumps the results into WebKitBuild/Release/methodcoverage
and not into WebKitBuild/Release/methodcoverage/results .
Comment 3 Langó László 2012-05-25 01:44:09 PDT
Created attachment 144008 [details]
Second version
Comment 4 Langó László 2012-05-30 00:58:47 PDT
Created attachment 144740 [details]
3rd version

now you must run only this script for get coverage data. This script will
- create the directories
- build webkit
- run layouttests
- create the *.csv files
Comment 5 Langó László 2012-05-30 02:36:40 PDT
Created attachment 144768 [details]
4th version

without build and run layout tests, only for collect coverage infos after running run-webkit-tests
Comment 6 Zoltan Arvai 2012-11-11 23:54:47 PST
Created attachment 173574 [details]
reworked version

Reworked version. 
It creates db in csv format with the following tables:
- libraries
- coverage
- functions
- sources
- testcases
Comment 7 Zoltan Arvai 2012-11-13 04:35:26 PST
Created attachment 173860 [details]
reworked version

updated patch to handle binaries dinamically
Comment 8 Zoltan Arvai 2012-11-13 04:38:56 PST
Created attachment 173861 [details]
reworked version

replacing previous patch that was wrongly generated
Comment 9 Jocelyn Turcotte 2014-02-03 03:50:53 PST
=== Bulk closing of Qt bugs ===

If you believe that this bug report is still relevant for a non-Qt port of webkit.org, please re-open it.

If you believe that this is still an important QtWebKit bug, please fill a new report at https://bugreports.qt-project.org and add a link to this issue. See http://qt-project.org/wiki/ReportingBugsInQt for additional guidelines.