Skip to content

Commit 600e66f

Browse files
committed
[TwigComponent][Perf] Remove component dumping from profiler to reduce memory usage
1 parent 15e2163 commit 600e66f

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/TwigComponent/src/DataCollector/TwigComponentDataCollector.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ private function collectDataFromLogger(): void
130130
'input_props' => $mountedComponent->getInputProps(),
131131
'attributes' => $mountedComponent->getAttributes()->all(),
132132
'template_index' => $event->getTemplateIndex(),
133-
'component' => $mountedComponent->getComponent(),
134133
'depth' => \count($ongoingRenders),
135134
'children' => [],
136135
'render_start' => $profile[0],

src/TwigComponent/templates/Collector/twig_component.html.twig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,10 +293,6 @@
293293
<th scope="row">Attributes</th>
294294
<td colspan="4">{{ profiler_dump(render.attributes) }}</td>
295295
</tr>
296-
<tr>
297-
<th scope="row">Component</th>
298-
<td colspan="4">{{ profiler_dump(render.component) }}</td>
299-
</tr>
300296
</tbody>
301297
</table>
302298
{% endfor %}

0 commit comments

Comments
 (0)