trace analysis