Added feature to collect workload traces into text files