Skip to content

Commit

Permalink
Merge pull request #2890 from bmf-san/add-process-warmup
Browse files Browse the repository at this point in the history
Process.warmupの記述を追加
  • Loading branch information
ohai authored Jun 8, 2024
2 parents f76025a + f6c138d commit d5298d4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions refm/api/src/_builtin/Process
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,15 @@ Process.wait2 # => [70024, #<Process::Status: pid 70024 exit 0>]
p Process.waitall
#=> [[2766, #<Process::Status: pid=2766,exited(1)>], [2765, #<Process::Status: pid=2765,exited(1)>]]

#@since 3.3
--- warmup -> true

[[c:RubyVM]]にアプリケーションの起動が終了したこと及び、アプリケーションの最適化に適したタイミングであることを通知します。

アプリケーションがプリフォークモデルでデプロイされる場合は、最初のフォークが行なわれる前に元のプロセスで呼び出しされることが推奨されます。
本メソッドが行う最適化は実装依存であり、将来的に予告なく変更される可能性があります。
#@end

#@since 1.9.1
--- daemon(nochdir = nil, noclose = nil) -> 0

Expand Down

0 comments on commit d5298d4

Please sign in to comment.