MCPcopy Create free account
hub / github.com/apache/brpc / bthread_num

Function bthread_num

tools/lldb_bthread_stack.py:222–230  ·  view source on GitHub ↗

r"""list active bthreads num

(debugger, command, result, internal_dict)

Source from the content-addressed store, hash-verified

220
221
222def bthread_num(debugger, command, result, internal_dict):
223 r"""list active bthreads num"""
224 if not global_state.started:
225 print("Not in bthread debug mode")
226 return
227
228 target = debugger.GetSelectedTarget()
229 active_bthreads = get_bthreads_num(target)
230 print(active_bthreads)
231
232
233def bthread_frame(debugger, command, result, internal_dict):

Callers

nothing calls this directly

Calls 1

get_bthreads_numFunction · 0.85

Tested by

no test coverage detected