def __init__(self, *args, **kwargs): StacktraceProcessor.__init__(self, *args, **kwargs) # If true, the project has been opted into using the symbolicator # service for native symbolication, which also means symbolic is not # used at all anymore. # The (iOS) symbolserver is still used regardless of this value. self.use_symbolicator = _is_symbolicator_enabled( self.project, self.data) metrics.incr('native.use_symbolicator', tags={'value': self.use_symbolicator}) self.arch = cpu_name_from_data(self.data) self.signal = signal_from_data(self.data) self.sym = None self.difs_referenced = set() images = get_path(self.data, 'debug_meta', 'images', default=(), filter=self._is_valid_image) if images: self.available = True self.sdk_info = get_sdk_from_event(self.data) self.object_lookup = ObjectLookup(images) self.images = images else: self.available = False
def __init__(self, project, object_lookup, referenced_images, arch=None, on_dsym_file_referenced=None): if not isinstance(object_lookup, ObjectLookup): object_lookup = ObjectLookup(object_lookup) self.object_lookup = object_lookup self.symcaches = ProjectDSymFile.dsymcache.get_symcaches( project, referenced_images, on_dsym_file_referenced=on_dsym_file_referenced) self.arch = arch
def __init__(self, project, object_lookup, referenced_images, on_dif_referenced=None): if not isinstance(object_lookup, ObjectLookup): object_lookup = ObjectLookup(object_lookup) self.object_lookup = object_lookup self.symcaches, self.symcaches_conversion_errors = \ ProjectDebugFile.difcache.get_symcaches( project, referenced_images, on_dif_referenced=on_dif_referenced, with_conversion_errors=True)
def __init__(self, *args, **kwargs): StacktraceProcessor.__init__(self, *args, **kwargs) debug_meta = self.data.get('debug_meta') self.arch = cpu_name_from_data(self.data) self.sym = None self.difs_referenced = set() if debug_meta: self.available = True self.debug_meta = debug_meta self.sdk_info = get_sdk_from_event(self.data) self.object_lookup = ObjectLookup( [img for img in self.debug_meta['images'] if img['type'] in self.supported_images] ) else: self.available = False
def __init__(self, *args, **kwargs): StacktraceProcessor.__init__(self, *args, **kwargs) self.arch = cpu_name_from_data(self.data) self.sym = None self.difs_referenced = set() images = get_path(self.data, 'debug_meta', 'images', default=(), filter=self._is_valid_image) if images: self.available = True self.sdk_info = get_sdk_from_event(self.data) self.object_lookup = ObjectLookup(images) else: self.available = False
def _get_modules(self): modules = (self.data.get('debug_meta') or {}).get('images') or [] return ObjectLookup(modules)
def _get_modules(self): modules = get_path(self.data, 'debug_meta', 'images', filter=True) return ObjectLookup(modules or [])