8000 [HttpKernel][Profiler] Add arg value resolver category in performance… · symfony/symfony@b24e054 · GitHub
[go: up one dir, main page]

Skip to content

Commit b24e054

Browse files
committed
[HttpKernel][Profiler] Add arg value resolver category in performances panel
1 parent 55def78 commit b24e054

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/time.html.twig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
'event_listener': '#00B8F5',
1010
'template': '#66CC00',
1111
'doctrine': '#FF6633',
12+
'controller.argument_value_resolver': '#8c5de6',
1213
} %}
1314
{% endif %}
1415

src/Symfony/Component/HttpKernel/Controller/ArgumentResolver/TraceableValueResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function __construct(ArgumentValueResolverInterface $inner, Stopwatch $st
3838
public function supports(Request $request, ArgumentMetadata $argument): bool
3939
{
4040
$method = \get_class($this->inner).'::'.__FUNCTION__;
41-
$this->stopwatch->start($method);
41+
$this->stopwatch->start($method, 'controller.argument_value_resolver');
4242

4343
$return = $this->inner->supports($request, $argument);
4444

@@ -53,7 +53,7 @@ public function supports(Request $request, ArgumentMetadata $argument): bool
5353
public function resolve(Request $request, ArgumentMetadata $argument): iterable
5454
{
5555
$method = \get_class($this->inner).'::'.__FUNCTION__;
56-
$this->stopwatch->start($method);
56+
$this->stopwatch->start($method, 'controller.argument_value_resolver');
5757

5858
yield from $this->inner->resolve($request, $argument);
5959

0 commit comments

Comments
 (0)
0