Trace analysis