0 follower

Interface Yiisoft\Db\Profiler\ProfilerInterface

Interface-decorator to work with yiisoft\profiler or another profiler.

See also Yiisoft\Db\Profiler\ProfilerAwareInterface::setProfiler().

Public Methods

Hide inherited 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

Hide inherited methods

begin() public abstract method

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;

            
end() public abstract method

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.

begin()

                public function end(string $token, array|ContextInterface $context = []): void;