Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
myaaghubi committed May 14, 2024
1 parent 8b1759f commit 9040172
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,30 @@ namespace DEBENCH;

require __DIR__ . '/vendor/autoload.php';

Debench::info('let\'s have the debench');

// call it from your index.php after autoload
// then check the webpage with your browser
// $debench = new Debench(true, 'theme');
Debench::getInstance(true, 'theme');

Debench::info('let\'s use some memory');
$st = str_repeat("Debench!", 10000);

Debench::info('step one');
// step one
// $debench->newPoint("one");
Debench::point('one');

$st .= str_repeat("Debench!", 10000);

// step two
Debench::info('step two');
// step two
Debench::point("two");
```
For `minimal` mode:
```php
// it is safe and secure to use for production mode
// it is safe and secure to use
// $debench->setMinimalOnly(true);
Debench::minimalOnly(true);
```
Expand Down

0 comments on commit 9040172

Please sign in to comment.