cleanup_view_runtime() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/railties/controller_runtime.rb, line 35
        def cleanup_view_runtime
          if logger && logger.info?
            db_rt_before_render = ActiveRecord::RuntimeRegistry.reset
            self.db_runtime = (db_runtime || 0) + db_rt_before_render
            runtime = super
            queries_rt = ActiveRecord::RuntimeRegistry.sql_runtime - ActiveRecord::RuntimeRegistry.async_sql_runtime
            db_rt_after_render = ActiveRecord::RuntimeRegistry.reset
            self.db_runtime += db_rt_after_render
            runtime - queries_rt
          else
            super
          end
        end
Register or log in to add new notes.