Giter Club home page Giter Club logo

Comments (6)

SamSaffron avatar SamSaffron commented on September 5, 2024

see: http://stackoverflow.com/questions/10135147/why-does-this-method-fail-to-instrument-actionviewtemplate-render

from miniprofiler.

eviltrout avatar eviltrout commented on September 5, 2024

Is this comment on the right issue? Because I fixed a bug with
instrumenting the render (other issue) and it seems to work for me!

On Fri, Apr 13, 2012 at 12:19 AM, Sam
[email protected]
wrote:

see: http://stackoverflow.com/questions/10135147/why-does-this-method-fail-to-instrument-actionviewtemplate-render


Reply to this email directly or view it on GitHub:
#27 (comment)

from miniprofiler.

SamSaffron avatar SamSaffron commented on September 5, 2024

oops, should not have asked that

getting a sane name seems to be quite challenging
x.instance_variable_get '@virtual_path'

seems to get us a bit of info ... but it is not enough

from miniprofiler.

SamSaffron avatar SamSaffron commented on September 5, 2024

oops apologies ... yeah my mistake my patch was not needed, though we still need to figure out a way of getting nice names for the partials etc

from miniprofiler.

SamSaffron avatar SamSaffron commented on September 5, 2024

k ... I think I got it working now for views ... still need to wire up rack middleware

from miniprofiler.

eviltrout avatar eviltrout commented on September 5, 2024

Okay, this is working now in my Rails project automatically.

It defaults to off unless the environment is development.

I have added a configuration method so you can configure it in rails with an initializer since you don't have access to the constructor.

Here's an example from my project, where I want it visible in development and production:

# config/initializers/mini_profiler.rb
Rack::MiniProfiler.configuration[:authorize_cb] = lambda {|env| true }

from miniprofiler.

Related Issues (20)

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.