1. A method for probing an integrated circuit, comprising: collecting light emitted from a selected area of the integrated circuit; passing the collected light through a diffracting element to break the collected light into its frequency components to obtain a diffraction spectrum; projecting the diffraction spectrum on a photosensor to obtain an image of the diffraction spectrum; and classifying a faulty device in the integrated circuit according to a shape of the image of the diffraction spectrum.