Lines Matching refs:thread
93 """A builder for a profile of the thread.
98 tid: thread ID.
178 """Add a timestamped stack trace sample to the thread builder.
180 comm: command-line (name) of the thread at this sample
261 # event and store the data in the thread builder.
292 # Add sample to the specific thread.
293 thread = tid_to_thread.get(tid)
294 if thread is None:
295 thread = Thread(comm=comm, pid=pid, tid=tid)
296 tid_to_thread[tid] = thread
297 thread._add_sample(comm=comm, stack=stack, time_ms=time_stamp)
312 threads = [thread._to_json_dict() for thread in tid_to_thread.values()]