Real-Time Measurements of Photonic Microchips with Femtometer-Scale Spectral Precision and Ultrahigh Sensitivity