aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/CHANGELOG.md
diff options
context:
space:
mode:
authorEileen Uchitelle <eileencodes@gmail.com>2018-10-09 14:08:25 -0400
committerEileen Uchitelle <eileencodes@gmail.com>2018-10-10 08:07:12 -0400
commite8c1be4ae7797f3ede588d2cf04a0155b4d6ce4a (patch)
tree99a96136ddf8581c53da3ce08f3b88660eaa92f8 /actionview/CHANGELOG.md
parent168a9728dd00069efe04fec4b59d29e3752fbfb3 (diff)
downloadrails-e8c1be4ae7797f3ede588d2cf04a0155b4d6ce4a.tar.gz
rails-e8c1be4ae7797f3ede588d2cf04a0155b4d6ce4a.tar.bz2
rails-e8c1be4ae7797f3ede588d2cf04a0155b4d6ce4a.zip
Add allocations to template renderer subscription
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) ```
Diffstat (limited to 'actionview/CHANGELOG.md')
-rw-r--r--actionview/CHANGELOG.md12
1 files changed, 12 insertions, 0 deletions
diff --git a/actionview/CHANGELOG.md b/actionview/CHANGELOG.md
index 252fce6472..fd8bae0cdf 100644
--- a/actionview/CHANGELOG.md
+++ b/actionview/CHANGELOG.md
@@ -1,3 +1,15 @@
+* Add allocations to template rendering instrumentation.
+
+ Adds the allocations for template and partial rendering to the server output on render.
+
+ ```
+ 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)
+ ```
+
+ *Eileen M. Uchitelle*, *Aaron Patterson*
+
* Respect the `only_path` option passed to `url_for` when the options are passed in as an array
Fixes #33237.