Interface Yiisoft\Profiler\ProfilerInterface
| Implemented by | Yiisoft\ |
|---|
ProfilerInterface describes a profiler instance.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| begin() | Marks the beginning of a code block for profiling. | Yiisoft\ |
| end() | Marks the end of a code block for profiling. | Yiisoft\ |
| findMessages() | Find messages with a given token. | Yiisoft\ |
| flush() | Flushes profiling messages from memory to actual storage. | Yiisoft\ |
Method Details
Marks the beginning of a code block for profiling.
This has to be matched with a call to {@see \
| 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 \
| 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 \ |
public function end(string $token, array $context = []): void;
Find messages with a given token.
| public abstract Yiisoft\ | ||
| $token | string |
Code block token. |
| return | Yiisoft\ |
The messages profiler. |
|---|---|---|
public function findMessages(string $token): array;
User Contributed Notes
Leave a comment
Join the conversation to share a note.