def shutdown(self, app_name): """Stop all profile sessions running on the given app_name. """ # Check if we need to stop the full profiler. if app_name == self.full_profile_app: self.stop_profile_session(app_name) # Stop all xray profiler sessions. try: xray_profile_sessions = self.application_xrays[app_name] except KeyError: return False for key_txn in list(six.iterkeys(xray_profile_sessions)): self.stop_profile_session(app_name, key_txn) return True
def shutdown(self, app_name): """Stop all profile sessions running on the given app_name. """ # Check if we need to stop the full profiler. if app_name == self.full_profile_app: self.stop_profile_session(app_name) # Stop all x-ray profiler sessions. try: xray_profile_sessions = self.application_xrays[app_name] except KeyError: return False for key_txn in list(six.iterkeys(xray_profile_sessions)): self.stop_profile_session(app_name, key_txn) return True
def linked_applications(self): return list(six.iterkeys(self._linked))