[ruby-cvs:72295] mame:r65195 (trunk): ext/coverage/: add the oneshot mode

mame at ruby-lang.org mame at ruby-lang.org
Sat Oct 20 14:33:04 JST 2018


mame	2018-10-20 14:33:04 +0900 (Sat, 20 Oct 2018)

  New Revision: 65195

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=65195

  Log:
    ext/coverage/: add the oneshot mode
    
    This patch introduces "oneshot_lines" mode for `Coverage.start`, which
    checks "whether each line was executed at least once or not", instead of
    "how many times each line was executed".  A hook for each line is fired
    at most once, and after it is fired, the hook flag was removed; it runs
    with zero overhead.
    
    See [Feature #15022] in detail.

  Added directories:
    trunk/ext/coverage/lib/
  Added files:
    trunk/ext/coverage/lib/coverage.rb
  Modified files:
    trunk/compile.c
    trunk/ext/coverage/coverage.c
    trunk/internal.h
    trunk/iseq.c
    trunk/test/coverage/test_coverage.rb
    trunk/thread.c
    trunk/vm_core.h


More information about the ruby-cvs mailing list