We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c19534 commit 09c1b29Copy full SHA for 09c1b29
1 file changed
README.md
@@ -68,6 +68,20 @@ shutdown handler:
68
$profiler->start(false);
69
```
70
71
+## Using config file
72
+
73
+You can create `config/config.php` and load config from there:
74
75
+1. copy `config/config.default.php` to `config/config.php`
76
+2. use `Config::create()` to `new Profiler`
77
78
+```php
79
+// Config::create() will load config/config.default.php
80
+// and then merge with config/config.php (if it exists).
81
+$config = \Xhgui\Profiler\Config::create();
82
+$profiler = new \Xhgui\Profiler\Profiler($config);
83
+```
84
85
## Advanced Usage
86
87
You might want to control capture and sending yourself,
0 commit comments