MCPcopy Create free account
hub / github.com/PaddlePaddle/FastDeploy / worker_slices

Method worker_slices

tests/metrics/test_trace.py:1248–1254  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1246 rid = "test_concurrent_slices"
1247
1248 def worker_slices():
1249 trace.trace_set_thread_info("worker_thread")
1250 trace.trace_req_start(rid, "")
1251 trace.trace_slice_start("worker_slice", rid)
1252 time.sleep(0.001)
1253 trace.trace_slice_end("worker_slice", rid)
1254 trace.trace_req_finish(rid)
1255
1256 # Main thread
1257 trace.trace_set_thread_info("main_thread")

Callers

nothing calls this directly

Calls 1

sleepMethod · 0.45

Tested by

no test coverage detected