This is an example of using Ruby 2.0 Tracepoint API to measure amount of ruby and C method calls using sinatra.
Inspired by Mark Bates's rubyconf presentation on tracepoint. Derived from his code in the same talk. Thanks Mark.
Sinatra makes 4607 calls on during shutdown. (We start the tracing after Sinatra is running.)
Sinatra makes 8982 calls for startup and response to one HTTP request via curl.
Therefore Sinatra makes 4375 method calls to process a request.