Skip to content

Commit

Permalink
[HttpKernel][Profiler] Add arg value resolver category in performance…
Browse files Browse the repository at this point in the history
…s panel
  • Loading branch information
ogizanagi committed Sep 7, 2018
1 parent 55def78 commit b24e054
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
'event_listener': '#00B8F5',
'template': '#66CC00',
'doctrine': '#FF6633',
'controller.argument_value_resolver': '#8c5de6',
} %}
{% endif %}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function __construct(ArgumentValueResolverInterface $inner, Stopwatch $st
public function supports(Request $request, ArgumentMetadata $argument): bool
{
$method = \get_class($this->inner).'::'.__FUNCTION__;
$this->stopwatch->start($method);
$this->stopwatch->start($method, 'controller.argument_value_resolver');

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

Expand All @@ -53,7 +53,7 @@ public function supports(Request $request, ArgumentMetadata $argument): bool
public function resolve(Request $request, ArgumentMetadata $argument): iterable
{
$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);

Expand Down

0 comments on commit b24e054

Please sign in to comment.