MCPcopy Create free account
hub / github.com/microsoft/debugpy / finalize

Method finalize

tests/timeline.py:124–140  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

122 return self._finalized.is_set()
123
124 def finalize(self):
125 if self.is_final:
126 return
127
128 log.info("Finalizing timeline...")
129 with self.unfrozen():
130 self.mark("FINISH")
131
132 with self.unfrozen():
133 self._finalized.set()
134 # Drain the record queue.
135 self._record_queue.join()
136 # Tell the recorder to shut itself down.
137 self._record_queue.put(None)
138 self._recorder_thread.join()
139
140 assert self._record_queue.empty(), "Finalized timeline had pending records"
141
142 def close(self):
143 self.finalize()

Callers 3

closeMethod · 0.95
make_timelineFunction · 0.95
test_occurrencesFunction · 0.45

Calls 6

unfrozenMethod · 0.95
markMethod · 0.95
infoMethod · 0.80
putMethod · 0.80
joinMethod · 0.45
emptyMethod · 0.45

Tested by 2

make_timelineFunction · 0.76
test_occurrencesFunction · 0.36