1. 10 10月, 2018 1 次提交
    • E
      Add allocations to template renderer subscription · e8c1be4a
      Eileen Uchitelle 提交于
      This PR adds the allocations to the instrumentation for template and
      partial rendering.
      
      Before:
      
      ```
        Rendering posts/new.html.erb within layouts/application
        Rendered posts/_form.html.erb (9.7ms)
        Rendered posts/new.html.erb within layouts/application (10.9ms)
      Completed 200 OK in 902ms (Views: 890.8ms | ActiveRecord: 0.8ms)
      ```
      
      After:
      
      ```
        Rendering posts/new.html.erb within layouts/application
        Rendered posts/_form.html.erb (Duration: 7.1ms | Allocations: 6004)
        Rendered posts/new.html.erb within layouts/application (Duration: 8.3ms | Allocations: 6654)
      Completed 200 OK in 858ms (Views: 848.4ms | ActiveRecord: 0.4ms | Allocations: 1539564)
      ```
      e8c1be4a
  2. 02 11月, 2017 1 次提交
  3. 24 7月, 2017 1 次提交
  4. 02 7月, 2017 1 次提交
  5. 01 7月, 2017 1 次提交
  6. 09 6月, 2017 2 次提交
  7. 19 5月, 2017 1 次提交
  8. 10 10月, 2016 1 次提交
  9. 08 8月, 2016 2 次提交
    • K
      Extract common view cache dependency setup. · 6530fe6a
      Kasper Timm Hansen 提交于
      6530fe6a
    • S
      Modify LogSubscriber for single partial's cache message. · ab2af4df
      Stan Lo 提交于
      Implement naive partial caching mechanism.
      
      Add test for LogSubscriber
      
      Use ActionView::Base#log_payload to store log_subscriber's payload, so we can pass cache result into it.
      
      Fixed tests
      
      Remove useless settings
      
      Check if #log_payload exists before calling it. Because other classes also includes CacheHelper but don't have is attribute
      
      Use @log_payload_for_partial_reder instead of #log_payload to carry ActionView's payload.
      
      Update test's hash syntax
      
      Add configuration to enable/disable fragment caching logging
      
      Remove unless test and add new test to ensure cache info won't effect next rendering's log
      
      Move :enable_fragment_cache_logging config from ActionView to ActionPack
      
      Apply new config to tests
      
      Update actionview's changelog
      
      Update configuration guide
      
      Improve actionview's changelog
      
      Refactor PartialRenderer#render and log tests
      
      Mute subscriber's log instead of disabling instrumentation.
      
      Fix typo, remove useless comment and use new hash syntax
      
      Improve actionpack's log_subscriber test
      
      Fix rebase mistake
      
      Apply new config to all caching intstrument actions
      ab2af4df
  10. 07 8月, 2016 2 次提交
  11. 27 2月, 2016 1 次提交
  12. 21 2月, 2016 1 次提交
    • K
      Instrument cached collection renders. · b4700de1
      Kasper Timm Hansen 提交于
      Augments the collection caching with some instrumentation that's logged.
      
      For collections that have been cached like:
      
      ```ruby
      <%= render partial: 'notifications/notification', collection: @notifications, cached: true %>
      ```
      
      We'll output a line showing how many cache hits we had when rendering it:
      
      ```
        Rendered collection of notifications/_notification.html.erb [0 / 100 cache hits] (3396.5ms)
      ```
      b4700de1
  13. 24 9月, 2015 1 次提交
  14. 20 6月, 2013 1 次提交
  15. 28 8月, 2012 1 次提交
    • P
      Remove stubs from LogSubscriber tests · 731bb2fe
      Piotr Sarnacki 提交于
      We can use another way to instantiate ActionView::Base, by passing
      renderer as a first option. Thanks to that we can just pass prefixes to
      LookupContext instead stubbing them on the controller. This is also good,
      because that kind of API is used in Rails code.
      731bb2fe
  16. 19 1月, 2012 1 次提交
  17. 22 9月, 2011 1 次提交
  18. 01 5月, 2011 1 次提交
  19. 27 12月, 2010 1 次提交
  20. 14 10月, 2010 1 次提交
  21. 27 9月, 2010 1 次提交
  22. 24 6月, 2010 1 次提交
  23. 03 3月, 2010 1 次提交
  24. 24 2月, 2010 1 次提交
  25. 17 2月, 2010 1 次提交
  26. 16 2月, 2010 1 次提交
  27. 01 2月, 2010 1 次提交
  28. 21 1月, 2010 1 次提交
  29. 16 1月, 2010 2 次提交
  30. 13 1月, 2010 2 次提交