Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.216.37
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby20 /
share /
ri /
2.0.0 /
system /
Profiler__ /
Delete
Unzip
Name
Size
Permission
Date
Action
cdesc-Profiler__.ri
2.79
KB
-rw-r--r--
2023-07-26 17:38
print_profile-i.ri
251
B
-rw-r--r--
2023-07-26 17:38
start_profile-i.ri
250
B
-rw-r--r--
2023-07-26 17:38
stop_profile-i.ri
248
B
-rw-r--r--
2023-07-26 17:38
Save
Rename
U:RDoc::NormalModule[iI"Profiler__:EF@0o:RDoc::Markup::Document:@parts[o;;[o:RDoc::Markup::Paragraph;[I"=Profile provides a way to Profile your Ruby application.;To:RDoc::Markup::BlankLine o; ;[I"QProfiling your program is a way of determining which methods are called and ;TI"Lhow long each method takes to complete. This way you can detect which ;TI"&methods are possible bottlenecks.;T@o; ;[I"MProfiling your program will slow down your execution time considerably, ;TI"Lso activate it only when you need it. Don't confuse benchmarking with ;TI"profiling.;T@o; ;[I".There are two ways to activate Profiling:;T@S:RDoc::Markup::Heading: leveli: textI"Command line;T@o; ;[I"6Run your Ruby script with <code>-rprofile</code>:;T@o:RDoc::Markup::Verbatim;[I"ruby -rprofile example.rb ;T:@format0o; ;[I"NIf you're profiling an executable in your <code>$PATH</code> you can use ;TI"<code>ruby -S</code>:;T@o;;[I"'ruby -rprofile -S some_executable ;T;0S;;i; I"From code;T@o; ;[I"Just require 'profile':;T@o;;[I"require 'profile' ;TI" ;TI"def slow_method ;TI" 5000.times do ;TI"$ 9999999999999999*999999999 ;TI" end ;TI" end ;TI" ;TI"def fast_method ;TI" 5000.times do ;TI"$ 9999999999999999+999999999 ;TI" end ;TI" end ;TI" ;TI"slow_method ;TI"fast_method ;T;0o; ;[I"EThe output in both cases is a report when the execution is over:;T@o;;[I"ruby -rprofile example.rb ;TI" ;TI"9 % cumulative self self total ;TI"@ time seconds seconds calls ms/call ms/call name ;TI"I 68.42 0.13 0.13 2 65.00 95.00 Integer#times ;TI"D 15.79 0.16 0.03 5000 0.01 0.01 Fixnum#* ;TI"D 15.79 0.19 0.03 5000 0.01 0.01 Fixnum#+ ;TI"K 0.00 0.19 0.00 2 0.00 0.00 IO#set_encoding ;TI"N 0.00 0.19 0.00 1 0.00 100.00 Object#slow_method ;TI"O 0.00 0.19 0.00 2 0.00 0.00 Module#method_added ;TI"N 0.00 0.19 0.00 1 0.00 90.00 Object#fast_method ;TI"D 0.00 0.19 0.00 1 0.00 190.00 #toplevel;T;0: @fileI"lib/profiler.rb;T:0@omit_headings_from_table_of_contents_below0;0;0[ [U:RDoc::Constant[i I"PROFILE_CALL_PROC;FI""Profiler__::PROFILE_CALL_PROC;F00o;;[ ;@T;0@T@cRDoc::NormalModule0U;[i I"PROFILE_RETURN_PROC;FI"$Profiler__::PROFILE_RETURN_PROC;F00o;;[ ;@T;0@T@@]0[ [[I" class;T[[:public[ [:protected[ [:private[ [I" instance;T[[;[[I"print_profile;FI"lib/profiler.rb;T[I"start_profile;F@v[I"stop_profile;F@v[;[ [;[ [ [U:RDoc::Context::Section[i 0o;;[ ;0;0[I"lib/profile.rb;T@T@TcRDoc::TopLevel