Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f6b4dc9

Browse filesBrowse files
committed
feature #28387 [HttpKernel][Profiler] Add arg value resolver category in performances panel (ogizanagi)
This PR was merged into the 4.2-dev branch. Discussion ---------- [HttpKernel][Profiler] Add arg value resolver category in performances panel | Q | A | ------------- | --- | Branch? | master <!-- see below --> | Bug fix? | no | New feature? | yes <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no <!-- see https://symfony.com/bc --> | Deprecations? | no <!-- don't forget to update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tests pass? | yes <!-- please add some, will be required by reviewers --> | Fixed tickets | part of #27262 <!-- #-prefixed issue number(s), if any --> | License | MIT | Doc PR | N/A Extracted from #27321 <img width="1071" alt="screenshot 2018-05-20 a 12 23 55" src="https://user-images.githubusercontent.com/2211145/40278071-98c04924-5c2a-11e8-9770-d78ac62d2c16.PNG"> Commits ------- b24e054 [HttpKernel][Profiler] Add arg value resolver category in performances panel
2 parents 88a2af5 + b24e054 commit f6b4dc9
Copy full SHA for f6b4dc9

File tree

Expand file treeCollapse file tree

2 files changed

+3
-2
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+3
-2
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/time.html.twig
+1Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpKernel/Controller/ArgumentResolver/TraceableValueResolver.php
+2-2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.