Ejemplo n.º 1
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)
         profiling.save_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)
Ejemplo 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)
         profiling.save_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)