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!
03.
Installing the Agent, Probe & Chrome Extension
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
}
}
10 Comments
One thing is currently missed into README.md of the sample project is database. If you have no MySQL installed on the host machine, you can use docker-compose.
My simple
docker-compose.yamllooks like:`
version: '3'
services:
database:
`
Thanks for sharing with others. Cheers!
Hi, When I click on Profile! on the Chrome extension, I only get 10% and then stop. I never have 100% done.
I have blackfire-agent run and probe extension enable (by check php -m).
Am I missing something on installation in 2022?
Thanks
Hey Dang,
Do you get any errors? I'd expect an authorization error or something similar
Yes, when I run by the CLI:
blackfire curl https://127.0.0.1:8000I have this error: Are you authorized to profile this page? No probe response, Blackfire not properly installed or invalid signature for relaying agent.I installed with the Blackfire v2 , option "as quickly as possible" on linux machine. I have then the file .blackfire.ini with client-id, client-token and a file named agent in /etc/blackfire which contains the server-id and server-token.
Hey Dang,
I found this warning in the Blackfire page
Is it possible that you have any of those tools installed? If that's not the case, I think you'll have to configure the "probe" to log more info and see if we find a hint of the problem https://blackfire.io/docs/php/configuration
Oh, and this may sound silly, but double-check that you introduced your credentials correctly
I cant install the probe library in windows .. PHP Startup: Unable to load dynamic library 'blackfire.so' (tried: C:\xampp\php\ext\blackfire.so (Le module sp´┐¢cifi´┐¢ est introuvable.), C:\xampp\php\ext\php_blackfire.so.dll
Hey hanen
Interesting, have you followed this installation steps? https://blackfire.io/docs/u...
I guess you have wrong DLL file
Cheers!
hi , I tried loding the following file and it works :)))
https://packages.blackfire....
Perfect! Looks like you had wrong library, I'm glad to see that everything is solved!
Cheers!
"Houston: no signs of life"
Start the conversation!