Exemplo n.º 1
0
 def _save_gecko_profile(self, symbolicator, missing_symbols_zip,
                         profile_path):
     LOG.info("Symbolicating profile at %s" % profile_path)
     try:
         with open(profile_path, "r") as profile_file:
             profile = json.load(profile_file)
         symbolicator.dump_and_integrate_missing_symbols(
             profile, missing_symbols_zip)
         symbolicator.symbolicate_profile(profile)
         save_gecko_profile(profile, profile_path)
     except MemoryError:
         LOG.critical("Ran out of memory while trying"
                      " to symbolicate profile {0}".format(profile_path))
     except Exception:
         LOG.critical("Encountered an exception during profile"
                      " symbolication {0}".format(profile_path))
Exemplo n.º 2
0
 def _save_gecko_profile(self, cycle, symbolicator, missing_symbols_zip,
                         profile_path):
     try:
         with open(profile_path, 'r') as profile_file:
             profile = json.load(profile_file)
         symbolicator.dump_and_integrate_missing_symbols(
             profile, missing_symbols_zip)
         symbolicator.symbolicate_profile(profile)
         save_gecko_profile(profile, profile_path)
     except MemoryError:
         LOG.critical("Ran out of memory while trying"
                      " to symbolicate profile {0} (cycle {1})".format(
                          profile_path, cycle),
                      exc_info=True)
     except Exception:
         LOG.critical("Encountered an exception during profile"
                      " symbolication {0} (cycle {1})".format(
                          profile_path, cycle),
                      exc_info=True)