MCPcopy Create free account
hub / github.com/bloomberg/pystack / gc_status

Method gc_status

src/pystack/types.py:142–158  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

140
141 @property
142 def gc_status(self) -> str:
143 if self.native_frames:
144 gc_symbols = {"gc_collect", "collect", "collect.constrprop"}
145 if any(
146 gc_symbol in frame.symbol
147 for gc_symbol in gc_symbols
148 for frame in self.native_frames
149 ):
150 return "Garbage collecting"
151 return ""
152
153 if self.is_gc_collecting != -1:
154 if self.is_gc_collecting == 1 and self.holds_the_gil:
155 return "Garbage collecting"
156 return ""
157
158 return ""
159
160 @property
161 def gil_status(self) -> str:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected