[HttpKernel][Profiler] Add arg value resolver category in performances panel
This commit is contained in:
parent
55def78682
commit
b24e0543e0
@ -9,6 +9,7 @@
|
|||||||
'event_listener': '#00B8F5',
|
'event_listener': '#00B8F5',
|
||||||
'template': '#66CC00',
|
'template': '#66CC00',
|
||||||
'doctrine': '#FF6633',
|
'doctrine': '#FF6633',
|
||||||
|
'controller.argument_value_resolver': '#8c5de6',
|
||||||
} %}
|
} %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ final class TraceableValueResolver implements ArgumentValueResolverInterface
|
|||||||
public function supports(Request $request, ArgumentMetadata $argument): bool
|
public function supports(Request $request, ArgumentMetadata $argument): bool
|
||||||
{
|
{
|
||||||
$method = \get_class($this->inner).'::'.__FUNCTION__;
|
$method = \get_class($this->inner).'::'.__FUNCTION__;
|
||||||
$this->stopwatch->start($method);
|
$this->stopwatch->start($method, 'controller.argument_value_resolver');
|
||||||
|
|
||||||
$return = $this->inner->supports($request, $argument);
|
$return = $this->inner->supports($request, $argument);
|
||||||
|
|
||||||
@ -53,7 +53,7 @@ final class TraceableValueResolver implements ArgumentValueResolverInterface
|
|||||||
public function resolve(Request $request, ArgumentMetadata $argument): iterable
|
public function resolve(Request $request, ArgumentMetadata $argument): iterable
|
||||||
{
|
{
|
||||||
$method = \get_class($this->inner).'::'.__FUNCTION__;
|
$method = \get_class($this->inner).'::'.__FUNCTION__;
|
||||||
$this->stopwatch->start($method);
|
$this->stopwatch->start($method, 'controller.argument_value_resolver');
|
||||||
|
|
||||||
yield from $this->inner->resolve($request, $argument);
|
yield from $this->inner->resolve($request, $argument);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user