Skip to content

appoxy/simple_performer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

In environment.rb:

config.gem 'simple_performer'
config.middleware.use SimplePerformer::Rack

To wrap your own sections:

SimplePerformer.benchmark("name_of_code_section") do

end

Other Utility Functions

To print duration of a block:

SimplePerformer.puts_duration ("name_of_code_section") do

end