Skip to content

Commit

Permalink
Merge pull request #271 from City-of-Helsinki/UHF-X-profiler
Browse files Browse the repository at this point in the history
Update xdebug-profiler instructions
  • Loading branch information
khalima authored Oct 10, 2024
2 parents 55fbdaf + 5b11998 commit 9ad1a3e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions documentation/xdebug-profiler.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Profiling code with Xdebug PHP Profiler

Create a modified xdebug.ini to your project's root:
Create a modified `xdebug.ini` to your project's root:
```ini
zend_extension=/usr/lib/php83/modules/xdebug.so
xdebug.mode=profile
Expand Down Expand Up @@ -43,9 +43,14 @@ index 99f55b27..27580975 100644
- .:/app:delegated
```

Create a new folder `xdebug` to your project's on local machine:
```bash
mkdir xdebug
```

Build the image with the dockerfile and start up the project
```bash
docker compose up --wait --remove-orphans --build`
docker compose up --wait --remove-orphans --build
```

Load the page you want to profile and check that the log files start to appear in project's `xdebug` folder.
Expand Down

0 comments on commit 9ad1a3e

Please sign in to comment.