New issue
Advanced search Search tips

Issue 763956 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Sep 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: iOS
Pri: 1
Type: Bug

Blocking:
issue 757515



Sign in to add a comment

Speed up code coverage script

Project Member Reported by liaoyuke@chromium.org, Sep 11 2017

Issue description

Right now, generating the code coverage report is pretty slow, and it takes more than 10 minutes for ios_chrome_unittests.
 
Blocking: 757515
Project Member

Comment 2 by bugdroid1@chromium.org, Sep 12 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/87ca26a51832ddfc1f54d889f7e23412f4fdaa6c

commit 87ca26a51832ddfc1f54d889f7e23412f4fdaa6c
Author: Yuke Liao <liaoyuke@chromium.org>
Date: Tue Sep 12 17:25:21 2017

[Coverage] Speed up code coverage report generation.

Origianlly, the code coverage script uses "llvm-cov export" to get
the code coverage, but the problem was that it took too long to run
and contains a lot of unrelated information, and for example, it took
more than 5 minutes to generate code coverage data for
ios_chrome_unittests.

This CL speeds up the report generation by changing to use
"llvm-cov report", it's more hacky, but it's significantly faster. 
This change reduced the time to generate code coverage report for 
ios_chrome_unittests from more than 5 minutes to less than 1 minute.

Bug:  763956 
Change-Id: Ib62a29fef67ea6973e063893af2164b34a25841c
Reviewed-on: https://chromium-review.googlesource.com/661677
Commit-Queue: Yuke Liao <liaoyuke@chromium.org>
Reviewed-by: Mike Baxley <baxley@chromium.org>
Cr-Commit-Position: refs/heads/master@{#501324}
[modify] https://crrev.com/87ca26a51832ddfc1f54d889f7e23412f4fdaa6c/ios/tools/coverage/coverage.py

Status: Fixed (was: Started)

Sign in to add a comment