public static function flush() { if (self::isStarted() && self::$collector === 'collectPhpDbg') { self::save(); } }