def profilers_enabled(): return all(p.enabled for p in all_profilers().itervalues())
def disable_profilers(): profilers = all_profilers().values() for profiler in profilers: profiler.disable() _log_enabled_profilers(profilers)