Skip to content

Commit 6684f9b

Browse files
committed
More ActionView, also add initializers
1 parent 68030cb commit 6684f9b

File tree

1 file changed

+44
-1
lines changed

1 file changed

+44
-1
lines changed

lib/vernier/hooks/active_support.rb

+44-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ class ActiveSupport
2020
{
2121
name: "instantiation.active_record",
2222
display: [ "marker-chart", "marker-table" ],
23+
tooltipLabel: "{marker.data.record_count} × {marker.data.name}",
24+
chartLabel: "{marker.data.record_count} × {marker.data.name}",
25+
tableLabel: "Instantiate {marker.data.record_count} × {marker.data.sql}",
2326
data: [
2427
{ key: "record_count", format: "integer" },
2528
{ key: "class_name", format: "string" }
@@ -74,9 +77,49 @@ class ActiveSupport
7477
chartLabel: '{marker.data.identifier}',
7578
tableLabel: '{marker.data.identifier}',
7679
data: [
77-
{ key: "key", format: "string" },
7880
{ key: "identifier", format: "string" }
7981
]
82+
},
83+
{
84+
name: "render_layout.action_view",
85+
display: [ "marker-chart", "marker-table" ],
86+
tooltipLabel: '{marker.data.identifier}',
87+
chartLabel: '{marker.data.identifier}',
88+
tableLabel: '{marker.data.identifier}',
89+
data: [
90+
{ key: "identifier", format: "string" }
91+
]
92+
},
93+
{
94+
name: "render_partial.action_view",
95+
display: [ "marker-chart", "marker-table" ],
96+
tooltipLabel: '{marker.data.identifier}',
97+
chartLabel: '{marker.data.identifier}',
98+
tableLabel: '{marker.data.identifier}',
99+
data: [
100+
{ key: "identifier", format: "string" }
101+
]
102+
},
103+
{
104+
name: "render_collection.action_view",
105+
display: [ "marker-chart", "marker-table" ],
106+
tooltipLabel: '{marker.data.identifier}',
107+
chartLabel: '{marker.data.identifier}',
108+
tableLabel: '{marker.data.identifier}',
109+
data: [
110+
{ key: "identifier", format: "string" },
111+
{ key: "count", format: "integer" }
112+
]
113+
},
114+
{
115+
name: "load_config_initializer.railties",
116+
display: [ "marker-chart", "marker-table" ],
117+
tooltipLabel: '{marker.data.initializer}',
118+
chartLabel: '{marker.data.initializer}',
119+
tableLabel: '{marker.data.initializer}',
120+
data: [
121+
{ key: "initializer", format: "string" }
122+
]
80123
}
81124
])
82125

0 commit comments

Comments
 (0)