def should_profile():
 if os.environ['SERVER_SOFTWARE'].startswith('Devel'):
  return _config.should_profile_development()
 else:
  return _config.should_profile_production()

def should_profile ( ) : if os . environ [ 'SERVER_SOFTWARE' ] . startswith ( 'Devel' ) : return _config . should_profile_development ( ) else : return _config . should_profile_production ( )
returns true if the current request should be profiles .