Interface Yiisoft\Db\Profiler\ProfilerInterface
Interface-decorator to work with yiisoft\profiler or another profiler.
See also Yiisoft\Db\Profiler\ProfilerAwareInterface::setProfiler().
Public Methods
| Method | Description | Defined By |
|---|---|---|
| begin() | Marks the beginning of a code block for profiling. | Yiisoft\Db\Profiler\ProfilerInterface |
| end() | Marks the end of a code block for profiling. | Yiisoft\Db\Profiler\ProfilerInterface |
Method Details
Marks the beginning of a code block for profiling.
There should be a matching call to end() with the same category name.
You must also properly nest the begin() and end() calls.
| public abstract begin( string $token, array|Yiisoft\Db\Profiler\ContextInterface $context = [] ): void | ||
| $token | string |
Token for the code block. |
| $context | array|Yiisoft\Db\Profiler\ContextInterface |
The context data of this profile block. |
public function begin(string $token, array|ContextInterface $context = []): void;
Marks the end of a code block for profiling.
There should be a matching call to begin() with the same category name.
You must also properly nest the begin() and end() calls.
| public abstract end( string $token, array|Yiisoft\Db\Profiler\ContextInterface $context = [] ): void | ||
| $token | string |
Token for the code block. |
| $context | array|Yiisoft\Db\Profiler\ContextInterface |
The context data of this profile block. |
public function end(string $token, array|ContextInterface $context = []): void;
Signup or Login in order to comment.