We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc04aa5 commit 2f02505Copy full SHA for 2f02505
README.md
@@ -186,6 +186,18 @@ measure_memory(function() {
186
});
187
```
188
189
+Or:
190
+
191
+```php
192
+$timing = \Binarcode\LaravelDeveloper\Profiling\ServerTiming::startWithoutKey();
193
194
+sleep(1);
195
196
+$timing->stopAllUnfinishedEvents();
197
198
+$timing->getDuration();
199
+```
200
201
And time measure:
202
203
```php
@@ -194,6 +206,18 @@ measure_timing(function() {
206
})
207
208
209
210
211
212
+$memory = \Binarcode\LaravelDeveloper\Profiling\ServerMemory::measure();
213
214
+// some code memory consuming
215
216
+$memory->stop();
217
218
+$memory->getMemory();
219
220
221
## Testing
222
223
``` bash
0 commit comments