New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add methods for including start events with notified actions #676
Comments
Imported from Lighthouse. Patch attached |
Imported from Lighthouse. +1 Verified. This patch applies cleanly and all tests pass. |
Imported from Lighthouse. Justin, we should always fire start events. Could you merge this with |
Imported from Lighthouse. There's a couple situations where you don't want it, !render_template.action_view being the main one where 1000s of calls may be mode. I will rename the old instrument method to be instrument_without_start, or something like that, yes? Or make it take an optional parameter? I'm not sure which is the proper way.
versus
Thanks for the feedback, I was less sure about this change. |
Imported from Lighthouse. (from [f3abc8a]) Use multibyte proxy class on 1.9, refactor Unicode. Makes String#mb_chars on Ruby 1.9 return an instance of ActiveSupport::Multibyte::Chars to work around 1.9's lack of Unicode case folding. Refactors class methods from ActiveSupport::Multibyte::Chars into new Unicode module, adding other related functionality for consistency. [#4594 state:resolved] Signed-off-by: Jeremy Kemper jeremy@bitsweat.net |
Imported from Lighthouse. Incorrectly resolved. |
Imported from Lighthouse. Okay, here we are, after a brief hiatus, a proper patch for this. I think that the case I was worrying about before (!render_template) is not that big a deal - if it's a problem we can fix it later. |
Imported from Lighthouse. Justin, this patch doesn't apply any more to Rails master. Can you fix it? |
Imported from Lighthouse. |
Imported from Lighthouse. |
Imported from Lighthouse. |
Imported from Lighthouse. Hi, I made a fix to this patch. |
Imported from Lighthouse. Robert's patch currently applies cleanly to master (despite a trailing whitespace warning), with all tests passing |
Attachments saved to Gist: http://gist.github.com/971669 |
Imported from Lighthouse. Original ticket at: http://rails.lighthouseapp.com/projects/8994/tickets/4594
Created by Justin George - 2010-05-13 22:37:30 UTC
The use case here is essentially for callback-esque use cases - we want to note when a sql transaction has begun, and when it has ended, as seperate events.
A use case for this is to notice when sql queries are hanging, or for noticing which order queries are starting in without reference to their final length.
Open to suggestions on what to call it, and how it should work.
The text was updated successfully, but these errors were encountered: