Add measureWork function to instruments input source.