Interface Yiisoft\Profiler\ProfilerInterface
| Implemented by | Yiisoft\Profiler\Profiler |
|---|
ProfilerInterface describes a profiler instance.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| begin() | Marks the beginning of a code block for profiling. | Yiisoft\Profiler\ProfilerInterface |
| end() | Marks the end of a code block for profiling. | Yiisoft\Profiler\ProfilerInterface |
| findMessages() | Find messages with a given token. | Yiisoft\Profiler\ProfilerInterface |
| flush() | Flushes profiling messages from memory to actual storage. | Yiisoft\Profiler\ProfilerInterface |
Method Details
Marks the beginning of a code block for profiling.
This has to be matched with a call to {@see \Yiisoft\Profiler\end()} with the same category name. The begin- and end- calls must also be properly nested.
| public abstract void begin ( string $token, array $context = [] ) | ||
| $token | string |
Token for the code block. |
| $context | array |
The context data of this profile block. |
public function begin(string $token, array $context = []): void;
Marks the end of a code block for profiling.
This has to be matched with a previous call to {@see \Yiisoft\Profiler\begin()} with the same category name.
| public abstract void end ( string $token, array $context = [] ) | ||
| $token | string |
Token for the code block. |
| $context | array |
The context data of this profile block. {@see \Yiisoft\Profiler\begin()} |
public function end(string $token, array $context = []): void;
Find messages with a given token.
| public abstract Yiisoft\Profiler\Message[] findMessages ( string $token ) | ||
| $token | string |
Code block token. |
| return | Yiisoft\Profiler\Message[] |
The messages profiler. |
|---|---|---|
public function findMessages(string $token): array;
Signup or Login in order to comment.