public function setProfiler($level = self::PROFILE_ALL, $slowms = 100) {

        return $this->db->command([
            'profile' => (int)$level,
            'slowms'  => (int)$slowms
        ]);
    }