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 end() with the same category name. The begin- and end- calls must also be properly nested.
| public abstract begin( string $token, array $context = [] ): void | ||
| $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 begin() with the same category name.
| public abstract end( string $token, array $context = [] ): void | ||
| $token | string |
Token for the code block. |
| $context | array |
The context data of this profile block. |
public function end(string $token, array $context = []): void;
Find messages with a given token.
| public abstract findMessages( string $token ): Yiisoft\Profiler\Message[] | ||
| $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.