add method
log only if profiling enabled