add script to read statistics in the trace