protected function beginProfile($token, $category) { if ($token !== false && $this->db->enableProfiling) { Yii::beginProfile($token, $category); } }