Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,18 @@ requests with the `/blog` URL path:
},
```

Here's an example to disable profiling if xdebug session is enabled:

```php
'profiler.enable' => function() {
if (function_exists('xdebug_is_enabled') && xdebug_is_enabled()) {
return false;
}

return true;
},
```

In contrast, the following example instructs to profile _every_
request:

Expand Down