Programming Language Assisted Waveform Analysis: A Case Study on the Instruction Performance of SERV (Full Report)