ruby-dev (Japanese) list archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-dev:50599] [Ruby trunk Feature#14953] Add :wait option to RubyVM::MJIT.pause
       [not found] <redmine.issue-14953.20180731100519@ruby-lang.org>
@ 2018-07-31 10:05 ` takashikkbn
  2018-07-31 10:09 ` [ruby-dev:50600] [Ruby trunk Feature#14953][Closed] " takashikkbn
  1 sibling, 0 replies; 2+ messages in thread
From: takashikkbn @ 2018-07-31 10:05 UTC (permalink / raw)
  To: ruby-dev

Issue #14953 has been reported by k0kubun (Takashi Kokubun).

----------------------------------------
Feature #14953: Add :wait option to RubyVM::MJIT.pause
https://bugs.ruby-lang.org/issues/14953

* Author: k0kubun (Takashi Kokubun)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
## Problem
To measure an MJIT-generated code's performance, currently we need to do `sleep ...; RubyVM::MJIT.pause` and it's hard to decide an appropriate sleep seconds.

## Solution
Add an :wait option (default: true) and:

~~~ ruby
# Wait for finishing all of queued compilations, and pause MJIT worker (different from the current behavior).
# This will be convenient for most of micro benchmarks. So I wanna make it default. It will be breaking but MJIT.pause is not released anywhere.
RubyVM::MJIT.pause
RubyVM::MJIT.pause(wait: true)

# Wait only for a currently-compiled method, and pause MJIT worker immediately (the current behavior).
# This will be convenient when there are many methods, like on Rails.
RubyVM::MJIT.pause(wait: false)
~~~



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [ruby-dev:50600] [Ruby trunk Feature#14953][Closed] Add :wait option to RubyVM::MJIT.pause
       [not found] <redmine.issue-14953.20180731100519@ruby-lang.org>
  2018-07-31 10:05 ` [ruby-dev:50599] [Ruby trunk Feature#14953] Add :wait option to RubyVM::MJIT.pause takashikkbn
@ 2018-07-31 10:09 ` takashikkbn
  1 sibling, 0 replies; 2+ messages in thread
From: takashikkbn @ 2018-07-31 10:09 UTC (permalink / raw)
  To: ruby-dev

Issue #14953 has been updated by k0kubun (Takashi Kokubun).

Status changed from Open to Closed

Wrongly created in ruby-dev... I'll re-create this on ruby-core.

----------------------------------------
Feature #14953: Add :wait option to RubyVM::MJIT.pause
https://bugs.ruby-lang.org/issues/14953#change-73247

* Author: k0kubun (Takashi Kokubun)
* Status: Closed
* Priority: Normal
* Assignee: 
* Target version: 
----------------------------------------
## Problem
To measure an MJIT-generated code's performance, currently we need to do `sleep ...; RubyVM::MJIT.pause` and it's hard to decide an appropriate sleep seconds.

## Solution
Add an :wait option (default: true) and:

~~~ ruby
# Wait for finishing all of queued compilations, and pause MJIT worker (different from the current behavior).
# This will be convenient for most of micro benchmarks. So I wanna make it default. It will be breaking but MJIT.pause is not released anywhere.
RubyVM::MJIT.pause
RubyVM::MJIT.pause(wait: true)

# Wait only for a currently-compiled method, and pause MJIT worker immediately (the current behavior).
# This will be convenient when there are many methods, like on Rails.
RubyVM::MJIT.pause(wait: false)
~~~



-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-07-31 10:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-14953.20180731100519@ruby-lang.org>
2018-07-31 10:05 ` [ruby-dev:50599] [Ruby trunk Feature#14953] Add :wait option to RubyVM::MJIT.pause takashikkbn
2018-07-31 10:09 ` [ruby-dev:50600] [Ruby trunk Feature#14953][Closed] " takashikkbn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).