yii\BaseYii::beginProfile PHP Method

beginProfile() public static method

This has to be matched with a call to [[endProfile]] with the same category name. The begin- and end- calls must also be properly nested. For example, php \Yii::beginProfile('block1'); some code to be profiled \Yii::beginProfile('block2'); some other code to be profiled \Yii::endProfile('block2'); \Yii::endProfile('block1');
See also: endProfile()
public static beginProfile ( string $token, string $category = 'application' )
$token string token for the code block
$category string the category of this log message
    public static function beginProfile($token, $category = 'application')
    {
        static::getLogger()->log($token, Logger::LEVEL_PROFILE_BEGIN, $category);
    }