[ruby-core:61101] Re: [ruby-trunk - Feature #9508] Add method coverage and branch coverage metrics

From: Eric Wong <normalperson@...>
Date: 2014-02-26 08:56:43 UTC
List: ruby-core #61101
sam.rawlins@gmail.com wrote:
> Are there examples you had other than those two spots?

The macros in compile.c, but then I noticed. something I missed
earlier: rb_coverage_struct is always allocated.

The reason I wanted rb_coverage_struct to be separate pointer is to save
memory since coverage is not a common case, so avoid allocating memory
unless coverage is enabled.

So what I mean was to do something like this:
	http://yhbt.net/iseq-coverage.diff

In This Thread

Prev Next