Application Profiling with ruby-prof, no Method get


i want to profile my rails-application with ruby prof.
i started to create a test.rb including:

get “/”
say “GET / => #{path}”

then i want to acces it via plugin by:
ruby-prof path/to/test/test.rb

but all i get is:
undifinfed methor “get” for main:Object (NoMethodError)

can someone tell me what`s going wrong?

Thanks for your responses.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs