Skip to content

Commit 2c576f1

Browse files
committed
wip
1 parent 5849576 commit 2c576f1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,13 @@ measure_memory(function() {
189189
Or:
190190

191191
```php
192-
$timing = \Binarcode\LaravelDeveloper\Profiling\ServerTiming::startWithoutKey();
192+
$memory = \Binarcode\LaravelDeveloper\Profiling\ServerMemory::measure();
193193

194-
sleep(1);
194+
// some code memory consuming
195195

196-
$timing->stopAllUnfinishedEvents();
196+
$memory->stop();
197197

198-
$timing->getDuration();
198+
$memory->getMemory();
199199
```
200200

201201
And time measure:
@@ -209,13 +209,13 @@ measure_timing(function() {
209209
Or:
210210

211211
```php
212-
$memory = \Binarcode\LaravelDeveloper\Profiling\ServerMemory::measure();
212+
$timing = \Binarcode\LaravelDeveloper\Profiling\ServerTiming::startWithoutKey();
213213

214-
// some code memory consuming
214+
sleep(1);
215215

216-
$memory->stop();
216+
$timing->stopAllUnfinishedEvents();
217217

218-
$memory->getMemory();
218+
$timing->getDuration();
219219
```
220220

221221
## Testing

0 commit comments

Comments
 (0)