mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-15 20:47:15 +01:00
13 lines
240 B
Markdown
13 lines
240 B
Markdown
# Profiler
|
|
|
|
```php
|
|
<?php
|
|
|
|
/** @var \Xentral\Components\Database\Profiler\Profiler $profiler */
|
|
$profiler = $container->get('DatabaseProfiler');
|
|
$profiler->setActive(true);
|
|
|
|
$database->fetchAll($sql);
|
|
|
|
var_dump($profiler->getContexts());
|
|
``` |