Giter Site home page Giter Site logo

view_marker's Introduction

ViewMarker

Marks Rails logs with a message at the beginning of view rendering:

Started GET "/en/about.html" for 127.0.0.1 at 2012-01-27 12:46:29 +0100
Processing by PagesController#about as HTML
  Parameters: {"lang"=>"en"}
---------------------------- Started view rendering ----------------------------
  Rendered pages/about.html.erb within layouts/application (0.9ms)
  User Load (0.3ms)  SELECT `users`.* FROM `users` WHERE `users`.`id` = 1 LIMIT 1
  Rendered layouts/_controls.html.erb (44.6ms)
  Rendered layouts/_header.html.erb (0.0ms)
  Rendered layouts/_navigation.html.erb (5.8ms)
Completed 200 OK in 66ms (Views: 64.9ms | ActiveRecord: 0.3ms) 

Can be useful to identify queries fired in views.

Installation

ViewMarker hooks into ActionController and therefore only works with Rails.

To use it just include it in your Gemfile:

gem 'view_marker'

And run bundle install.

view_marker's People

Contributors

youngbrioche avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

view_marker's Issues

License

Upon packaging I have seen, that you don't declare a licence for your project. Can you please add a licence file? It would also be great to see the licence in the gemspec as stated here: http://docs.rubygems.org/read/chapter/20#license

Also the homepage of the project is not declared in the gemspec. Would be nice to see that, too.

Thank you!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.