Comments (2)
Actually, it seems the middleware already accepts these options? Hm...
from rack-perftools_profiler.
Thanks for the idea - I'd like this as well. Unfortunately, because of an implementation detail in perftools.rb*, the profiling mode has to be set very early and cannot be changed later on. As a result, I made it an option when configuring the middleware, but not something that could be changed by a URL parameter. Sorry!
*The issue is that the profiling mode is controlled by environment variables that are read by perftools.rb. They are read when perftools.rb is loaded and are not read again. In fact, this might actually be a restriction of the underlying perftools C library, but I don't know for sure. If Aman Gupta changes perftools.rb to support changing the mode after perftools.rb has been loaded, I'll happily update the rack middleware.
from rack-perftools_profiler.
Related Issues (20)
- get some segfaults with __data__ in :walltime HOT 3
- In rails, when adding the profile attribute to a form in rails for the option of profiling nested param structures are degraded into strings HOT 1
- routes problem with devise default setup HOT 4
- Can't get a minimal Sinatra example working HOT 8
- Segmentation fault when using :mode => :objects HOT 2
- Unable to provide :password => "password" and then not profile requests HOT 2
- Unable to get useful profiling data HOT 3
- Symbol not found: _ruby_current_thread HOT 6
- Update perftools.rb dependency to allow 2.0.0 HOT 3
- Enabling/disabling GC manually causes rack-perftools_profiler to hang HOT 1
- Objects mode not collecting data? HOT 3
- Install fails on Windows due to missing tar command HOT 2
- crash in rb_stack_trace on ruby-1.9.3-p286 HOT 1
- quickstart instructions don't work, need 'gem install perftools.rb'
- Broken on Ruby 2: Bump the perftools.rb dependency for fix HOT 2
- Installation fails for ruby 2.1 HOT 3
- ?profile=true causes error when using mode: objects HOT 4
- no ps2pdf package for Ubuntu, should use ghostscript HOT 1
- Segment fault when trying to stop profiler by visiting /__stop__ on Rails 4.0.5 / Ruby 2.1.1 HOT 1
- Perl errors when trying to use tool, Mac OS Yosemite and Ruby 2.0.0-p247 HOT 5
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 rack-perftools_profiler.