profiler.enable can be an booleanish value as well as an callable