Lines Matching refs:thread

93             for thread in process.threads.values():
94 yield thread
99 for thread in process.threads.values():
100 for lib in thread.libs.values():
113 thread = self.threads.get(tid)
114 if not thread:
115 thread = self.threads[tid] = ThreadScope(tid)
116 thread.name = thread_name
119 return thread
126 result['threads'] = [thread.get_sample_info(gen_addr_hit_map)
127 for thread in threads]
134 for thread in thread_list:
135 cur_thread = new_threads.get(thread.name)
137 new_threads[thread.name] = thread
139 cur_thread.merge(thread)
141 for thread in new_threads.values():
142 self.threads[thread.tid] = thread
217 def merge(self, thread): argument
218 self.event_count += thread.event_count
219 self.sample_count += thread.sample_count
220 for lib_id, lib in thread.libs.items():
226 self.call_graph.merge(thread.call_graph)
227 self.reverse_call_graph.merge(thread.reverse_call_graph)
608 thread = process.get_thread(raw_sample.tid, raw_sample.thread_comm)
609 thread.event_count += raw_sample.period
610 thread.sample_count += 1
622 thread.add_callstack(raw_sample.period, callstack, self.build_addr_hit_map)
625 for thread in event.threads:
626 thread.update_subtree_event_count()
648 for thread in process.threads.values():
649 if thread.call_graph.subtree_event_count < min_limit:
650 to_del_threads.append(thread.tid)
652 thread.limit_percents(min_limit, min_callchain_percent, hit_func_ids)
653 for thread in to_del_threads:
654 del process.threads[thread]
797 for thread in process.threads.values():
798 thread_names[thread.tid] = thread.name