beginProfile() public static method
Marks the beginning of a code block for profiling.
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,
\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 void beginProfile ( $token, $category = 'application' ) | ||
---|---|---|
$token | string |
Token for the code block |
$category | string |
The category of this log message |
Please login to continue.