a working verion, add analysis tool trace.py
add trace tool