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

Issue 8157: Fixed a crash in the coverage script.... (Closed)

Created:
12 years, 2 months ago by Niranjan Tulpule
Modified:
9 years, 7 months ago
Reviewers:
Allen, Patrick Johnson
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Fixed a crash in the coverage script. The .coverage -> lcov converter tool ended up crashing the coverage script as it ran out of memory while processing a huge file (it threw an .Net 'Out of Memory' exception). I have now changed it to generate smaller intermediate LCOV files (one per test binary) and then consolidate them all into one large LCOV file. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=3938

Patch Set 1 #

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -59 lines) Patch
M tools/code_coverage/coverage.py View 1 11 chunks +99 lines, -59 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Niranjan Tulpule
12 years, 2 months ago (2008-10-24 19:25:27 UTC) #1
Allen
Looks good! http://codereview.chromium.org/8157/diff/1/2 File tools/code_coverage/coverage.py (right): http://codereview.chromium.org/8157/diff/1/2#newcode205 Line 205: retcode = subprocess.call(counters_command) If you wanted ...
12 years, 2 months ago (2008-10-24 20:55:07 UTC) #2
Patrick Johnson
LGTM You crashed Python? I'm impressed. http://codereview.chromium.org/8157/diff/1/2 File tools/code_coverage/coverage.py (right): http://codereview.chromium.org/8157/diff/1/2#newcode150 Line 150: else: Nit: ...
12 years, 2 months ago (2008-10-24 21:00:43 UTC) #3
Niranjan Tulpule
The crash was in coverage_analyzer.exe (System.OutOfMemoryException) and not in python. http://codereview.chromium.org/8157/diff/1/2 File tools/code_coverage/coverage.py (right): http://codereview.chromium.org/8157/diff/1/2#newcode150 ...
12 years, 2 months ago (2008-10-24 21:19:49 UTC) #4
Patrick Johnson
12 years, 2 months ago (2008-10-24 21:25:32 UTC) #5
On 2008/10/24 21:19:49, Niranjan Tulpule wrote:
> The crash was in coverage_analyzer.exe (System.OutOfMemoryException) and not
in
> python.

Ah!  That would explain the .Net 'Out of Memory' exception.  Not really a very
Python-like error, that.

Powered by Google App Engine
This is Rietveld 408576698