Comments (6)
from miniprofiler.
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:
Reply to this email directly or view it on GitHub:
#27 (comment)
from miniprofiler.
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.
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.
k ... I think I got it working now for views ... still need to wire up rack middleware
from miniprofiler.
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)
- Add license to the gemspec HOT 1
- Step method to return the yield call returned data? HOT 2
- Rack::MiniProfiler.config HOT 1
- DbSpacial support
- skip_schema_queries setting seems to be ignored in development HOT 7
- MiniProfiler OnDeserialized method missing the StreamingContext parameter. HOT 2
- No support of jQuery 2 HOT 3
- MiniProfiler requires JQuery HOT 3
- StackExchange.Profiling.EntityFramework not working with EF5 HOT 1
- Internal Server Error HOT 4
- Doesnt Seem to be working with Mountable Rails engines HOT 4
- Unnecessary newline inject HOT 2
- Profiling results pile up in production
- Should implementations of IStorage be thread-safe?
- Uncaught TypeError: Object [object Object] has no method 'tmpl' HOT 1
- Error when running Ruby version in app with Sunspot HOT 2
- JavaScript erros in IE8 HOT 2
- Does MP work with DataMapper?
- Setup Continuous Integration HOT 2
- Add bottom left/right positions to RenderPosition argument
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from miniprofiler.