D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Process
/
Filename :
warmup-c.ri
back
Copy
U:RDoc::AnyMethod[iI"warmup:ETI"Process::warmup;TT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"INotify the Ruby virtual machine that the boot sequence is finished, ;TI"Mand that now is a good time to optimize the application. This is useful ;TI"#for long running applications.;To:RDoc::Markup::BlankLine o; ; [I"NThis method is expected to be called at the end of the application boot. ;TI"PIf the application is deployed using a pre-forking model, +Process.warmup+ ;TI"Dshould be called in the original process before the first fork.;T@o; ; [I"MThe actual optimizations performed are entirely implementation specific ;TI"1and may change in the future without notice.;T@o; ; [I" On CRuby, +Process.warmup+:;T@o:RDoc::Markup::List: @type:BULLET:@items[o:RDoc::Markup::ListItem:@label0; [o; ; [I"Performs a major GC.;To;;0; [o; ; [I"Compacts the heap.;To;;0; [o; ; [I":Promotes all surviving objects to the old generation.;To;;0; [o; ; [I".Precomputes the coderange of all strings.;To;;0; [o; ; [I"MFrees all empty heap pages and increments the allocatable pages counter ;TI""by the number of pages freed.;To;;0; [o; ; [I"BInvoke +malloc_trim+ if available to free empty malloc pages.;T: @fileI"process.c;T:0@omit_headings_from_table_of_contents_below0I"Process.warmup -> true ;T0[ I"();T@>FI"Process;TcRDoc::NormalModule00