MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / run_plain

Function run_plain

test/aaa_profiling/test_memusage.py:204–221  ·  view source on GitHub ↗
(*func_args)

Source from the content-addressed store, hash-verified

202 queue.put(("result", True, "success"))
203
204 def run_plain(*func_args):
205 import queue as _queue
206
207 q = _queue.Queue()
208 profile(q, func_args)
209
210 while True:
211 row = q.get()
212 typ = row[0]
213 if typ == "samples":
214 print("sample gc sizes:", row[1])
215 elif typ == "status":
216 print(row[1])
217 elif typ == "result":
218 break
219 else:
220 assert False, "can't parse row"
221 assert row[1], row[2]
222
223 # return run_plain
224

Callers

nothing calls this directly

Calls 2

getMethod · 0.95
profileFunction · 0.85

Tested by

no test coverage detected