def __init__(self, args, gt, callbacks): GPUQueue.__init__(self, args, callbacks) self.cs = None self.ignore_gpu = True # workaround for incomplete dtrace ring self.cpu_packets = {} self.gpu_packets = {} self.thread_names = {} self.gpu_transition = {} self.gpu_frame = {'catch': [0, 0], 'task': None} self.prepares = {} self.pid_names = {} self.tid_map = {} self.event_tracker = { } # key is ring+channel => key is tracking stamp => [events] self.contexts = {u'0': 'System'} # id to type map for callback in self.callbacks.callbacks: if 'ContextSwitch' in dir(callback): self.cs = callback.ContextSwitch(callback, args.input + '.ftrace') self.callbacks( "metadata_add", { 'domain': 'GPU', 'str': '__process__', 'pid': -1, 'tid': -1, 'data': 'GPU Contexts', 'time': 0, 'delta': -2 }) self.decoders = [] decoders = get_decoders() if 'dtrace' in decoders: for decoder in decoders['dtrace']: self.decoders.append(decoder(args, callbacks))
def __init__(self, args, gt, callbacks): GPUQueue.__init__(self, args, callbacks) self.cs = None self.ignore_gpu = True # workaround for incomplete dtrace ring self.cpu_packets = {} self.gpu_packets = {} self.thread_names = {} self.gpu_transition = {} self.gpu_frame = {'catch': [0, 0], 'task': None} self.prepares = {} self.pid_names = {} self.tid_map = {} for callback in self.callbacks.callbacks: if 'ContextSwitch' in dir(callback): self.cs = callback.ContextSwitch(callback, args.input + '.ftrace') callback( "metadata_add", { 'domain': 'GPU', 'str': '__process__', 'pid': -1, 'tid': -1, 'data': 'GPU Engines', 'time': 0, 'delta': -2 })
def __init__(self, args, gt, callbacks): GPUQueue.__init__(self, args, callbacks) self.cs = None self.ignore_gpu = True # workaround for incomplete dtrace ring self.cpu_packets = {} self.gpu_packets = {} self.thread_names = {} self.gpu_transition = {} self.prepares = {} self.pid_names = {} self.tid_map = {} self.event_tracker = { } # key is ring+channel => key is tracking stamp => [events] self.contexts = {u'0': 'System'} # id to type map callbacks.set_process_name(-1, 'GPU Contexts') self.stat = {} self.decoders = [] decoders = get_decoders() if 'dtrace' in decoders: for decoder in decoders['dtrace']: self.decoders.append(decoder(args, callbacks)) importers = get_importers() self.read_system_info() self.collected_domains = set()
def __init__(self, args, callbacks): GPUQueue.__init__(self, args, callbacks) self.counters = {} self.cpu_packets = {} self.state = {} self.relations = {} self.wait_relations = {} self.gpu_relations = {} self.relations_add = {} self.has_gpu_events = False
def __init__(self, args, gt, callbacks): GPUQueue.__init__(self, args, callbacks) self.res = [args.input + '.ftrace'] self.cs = gt.ContextSwitch(self.res[0]) self.ignore_gpu = True # workaround for incomplete dtrace ring self.cpu_packets = {} self.gpu_packets = {} self.thread_names = {} self.gpu_transition = {} self.gpu_frame = {'catch': [0, 0], 'task': None} self.prepares = {} for callback in self.callbacks.callbacks: callback("metadata_add", {'domain': 'GPU', 'str': '__process__', 'pid': -1, 'tid': -1, 'data': 'GPU Engines', 'time': 0, 'delta': -2})
def __init__(self, args, gt, callbacks): GPUQueue.__init__(self, args, callbacks) self.res = [args.input + '.ftrace'] self.cs = gt.ContextSwitch(self.res[0]) self.cpu_packets = {} self.gpu_packets = {} self.thread_names = {} for callback in self.callbacks.callbacks: callback( "metadata_add", { 'domain': 'GPU', 'str': '__process__', 'pid': -1, 'tid': -1, 'data': 'GPU Engines', 'time': 0, 'delta': -2 })
def __init__(self, parser, args, callbacks): GPUQueue.__init__(self, args, callbacks) self.parser = parser self.steamvr = {}
def __init__(self, args, callbacks): GPUQueue.__init__(self, args, callbacks) self.gpu = self.callbacks.process(TRACK_INDEX, TRACK_NAME).thread(-1)