Chapters
37 Chapters
|
3:44:49
|
Login to bookmark this video
-
Course Code
Login or register to download the code!Compatible PHP versions: ^7.1.3
Login or register to download the code!Compatible PHP versions: ^7.1.3
-
This Video
Login or register to download the video!
Login or register to download the video!
-
Subtitles
Login or register to download the subtitles!
Login or register to download the subtitles!
-
Course Script
Login or register to download the script!
Login or register to download the script!
16.
Timeline: Finding a Hidden Surprise
Scroll down to the script below, click on any sentence (including terminal blocks) to jump to that spot in the video!
Subscribe to jump to this part in the video!
This tutorial can be used to learn how to profile any app - including Symfony 5.
What PHP libraries does this tutorial use?
// composer.json
{
"require": {
"php": "^7.1.3",
"ext-ctype": "*",
"ext-iconv": "*",
"blackfire/php-sdk": "^1.20", // v1.20.0
"composer/package-versions-deprecated": "^1.11", // 1.11.99
"doctrine/annotations": "^1.0", // v1.8.0
"doctrine/doctrine-bundle": "^1.6.10|^2.0", // 1.11.2
"doctrine/doctrine-migrations-bundle": "^1.3|^2.0", // v2.0.0
"doctrine/orm": "^2.5.11", // v2.6.4
"phpdocumentor/reflection-docblock": "^3.0|^4.0", // 4.3.2
"sensio/framework-extra-bundle": "^5.4", // v5.5.1
"symfony/console": "4.3.*", // v4.3.10
"symfony/dotenv": "4.3.*", // v4.3.10
"symfony/flex": "^1.9", // v1.21.6
"symfony/form": "4.3.*", // v4.3.10
"symfony/framework-bundle": "4.3.*", // v4.3.9
"symfony/http-client": "4.3.*", // v4.3.10
"symfony/property-access": "4.3.*", // v4.3.10
"symfony/property-info": "4.3.*", // v4.3.10
"symfony/security-bundle": "4.3.*", // v4.3.10
"symfony/serializer": "4.3.*", // v4.3.10
"symfony/twig-bundle": "4.3.*", // v4.3.10
"symfony/validator": "4.3.*", // v4.3.10
"symfony/webpack-encore-bundle": "^1.6", // v1.7.2
"symfony/yaml": "4.3.*", // v4.3.10
"twig/extensions": "^1.5" // v1.5.4
},
"require-dev": {
"doctrine/doctrine-fixtures-bundle": "^3.2", // 3.2.2
"easycorp/easy-log-handler": "^1.0.7", // v1.0.9
"fzaninotto/faker": "^1.8", // v1.8.0
"symfony/browser-kit": "4.3.*", // v4.3.10
"symfony/css-selector": "4.3.*", // v4.3.10
"symfony/debug-bundle": "4.3.*", // v4.3.10
"symfony/maker-bundle": "^1.13", // v1.14.3
"symfony/monolog-bundle": "^3.0", // v3.5.0
"symfony/phpunit-bridge": "^5.0", // v5.0.3
"symfony/stopwatch": "4.3.*", // v4.3.10
"symfony/var-dumper": "4.3.*", // v4.3.10
"symfony/web-profiler-bundle": "4.3.*" // v4.3.10
}
}
2 Comments
Hello, I use the same code (not fixed) and open the blackfire but I don't see the "AgreeToTermsSubscriber:onRequestEvent" under the bar RequestEvent in my timeline. There's only main/agreeUpdatedTerms.html.twig display to recognize that the form is rendered. And in the left timeline metrics, I don't see the symfony.firewall and symfony.routing.router as the video. Is there something changed in the blackfire?
And also, when I submit that form with agree (agreeUpdatedTerms.html.twig), nothing happen and the form will show forever . It seems to me this is a bug because the controller of that agreeUpdatedTerms in MainController was never called. Could you verify that?
Thanks
Hey @Dang!
Hmm, Blackfire's interface has changed a bit, but let's see what we can figure out :).
I just tried profiling - I'm using the "start" code from the tutorial, so before we fix anything. I also don't see the
symfony.firewall, but I do see thesymfony.routing.routeron the left side. Also, when I profile Symfonycasts on production, I DO seesymfony.firewall. My guess is that they're hiding/showing some of these just based on how much time they take - e.g. if they don't take much time, then they're not shown.I also don't see
AgreeToTermsSubscriber:onRequestEventon the timeline. But again, I think this is because Blackfire is hiding things that aren't taking enough time. Are you logged in when you try this page? The subscriber really only takes a lot of time if the user is currently logged in - so that may be why it's running so quickly and not showing up. That was the case for me: I didn't see it at first. But after logging in, it was back on the timeline!Cheers!
"Houston: no signs of life"
Start the conversation!