Intelligent trace parser