Add auto stat script for multiple traces.