Method: Vedeu::Config::API#profile!
- Defined in:
- lib/vedeu/configuration/api.rb
#profile!(value = true) ⇒ Boolean Also known as: profile
Note:
Be aware that running an application with profiling enabled will affect performance.
Vedeu.configure do
profile!
# ...
end
Vedeu.configure do
profile false
# ...
end
Sets boolean to enable/disable profiling. Vedeu’s default setting is for profiling to be disabled. Using ‘profile!` or setting `profile` to true will enable profiling.
Profile uses ‘ruby-prof’ to write a ‘profile.html’ file to the /tmp directory which contains a call trace of the running application. Upon exit, this file can be examined to ascertain certain behaviours of Vedeu.
350 351 352 |
# File 'lib/vedeu/configuration/api.rb', line 350 def profile!(value = true) [:profile] = value end |