Project

General

Profile

Actions

Feature #15963

closed

Add *_start and *_running methods to VM_COLLECT_USAGE_DETAILS API

Added by gmcgibbon (Gannon McGibbon) almost 5 years ago. Updated over 4 years ago.

Status:
Closed
Target version:
-
[ruby-core:93390]

Description

I want to count how many VM instructions get executed for an arbitrary block of ruby code with VM_COLLECT_USAGE_DETAILS enabled. However, the current API enables VM usage detail collection immediately and only exposes methods to turn collection off.

I've issued a PR to add more methods to the VM usage details API and to disable collection by default: https://github.com/ruby/ruby/pull/2258

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0