Task-driven Adaptive Sensing on Quadrupole Mass Filter