When building in debug mode, there isn't supposed to be any profiler code enabled, which is evident by the lack of the STATS definition, however, this is not enough to fully disable all profiler code.