Permanent gas analysis