Added trace enable flag, disabled traces while profiling