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 {@see \Yiisoft\Db\Profiler\end()} with the same category name.
You must also properly nest the begin() and end() calls.
| public abstract void begin ( string $token, array|Yiisoft\Db\Profiler\ContextInterface $context = [] ) | ||
| $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 {@see \Yiisoft\Db\Profiler\begin()} with the same category name.
You must also properly nest the begin() and end() calls.
| public abstract void end ( string $token, array|Yiisoft\Db\Profiler\ContextInterface $context = [] ) | ||
| $token | string |
Token for the code block. |
| $context | array|Yiisoft\Db\Profiler\ContextInterface |
The context data of this profile block. {@see \Yiisoft\Db\Profiler\begin()} |
public function end(string $token, array|ContextInterface $context = []): void;
Signup or Login in order to comment.