Dtrace function

Trace optimization routines