GitHunt
BR

bry4n/proceso-rails

Rails middleware to show memory/cpu usage per web request

Proceso Middleware

Build Status

A Rails middleware to print the memory and cpu usage after processing a web request.

Started GET "/" for 127.0.0.1 at 2014-05-18 02:31:23 -0500
Processing by HomeController#index as HTML
  User Load (0.4ms)  SELECT  "users".* FROM "users"  WHERE "users"."remember_token" IS NULL  ORDER BY "users"."id" ASC LIMIT
  ...
  Completed 200 OK in 12ms (Views: 11.4ms | ActiveRecord: 0.5ms)
[PROCESO] MEM: 12.0KB   CPU: 0.0        PATH: /

See Proceso for details.

Setup

  1. Add this to your project's Gemfile
gem 'proceso-rails', group: :development
  1. Then start rails server in development mode!
$ rails server

Contributing

If you would like to contribute, please:

  • Fork this project
  • Write tests if code is involved.
  • Use named branch
  • Submit Pull Request

License

Proceso Rails is licensed under the MIT License

Languages

Ruby100.0%

Contributors

Created May 9, 2014
Updated January 11, 2021