@@ -1050,57 +1050,13 @@ _remote_debugging_RemoteUnwinder_resume_threads_impl(RemoteUnwinderObject *self)
10501050#endif
10511051}
10521052
1053- /*[clinic input]
1054- @critical_section
1055- _remote_debugging.RemoteUnwinder.get_gc_stats
1056-
1057- all_interpreters: bool = False
1058- If True, return GC statistics from all interpreters.
1059- If False, return only from main interpreter.
1060-
1061- Get garbage collector statistics from external Python process.
1062-
1063- Returns a list of dictionaries with GC statistics data.
1064-
1065- Returns:
1066- List of dicts.
1067- dict: A dictionary containing:
1068- - gen:
1069- - iid:
1070- - ts_start:
1071- - ts_stop:
1072- - heap_size:
1073- - collections:
1074- - collected:
1075- - uncollectable:
1076- - candidates:
1077- - duration:
1078-
1079- Raises:
1080- RuntimeError:
1081- [clinic start generated code]*/
1082-
1083- static PyObject *
1084- _remote_debugging_RemoteUnwinder_get_gc_stats_impl (RemoteUnwinderObject * self ,
1085- int all_interpreters )
1086- /*[clinic end generated code: output=ee2f7cb3e4ea7bc1 input=d471552ace480487]*/
1087- {
1088- RuntimeOffsets offsets = {
1089- .handle = self -> handle ,
1090- .runtime_start_address = self -> runtime_start_address ,
1091- .debug_offsets = self -> debug_offsets ,
1092- };
1093- return get_gc_stats (& offsets , all_interpreters );
1094- }
1095-
10961053static PyMethodDef RemoteUnwinder_methods [] = {
10971054 _REMOTE_DEBUGGING_REMOTEUNWINDER_GET_STACK_TRACE_METHODDEF
10981055 _REMOTE_DEBUGGING_REMOTEUNWINDER_GET_ALL_AWAITED_BY_METHODDEF
10991056 _REMOTE_DEBUGGING_REMOTEUNWINDER_GET_ASYNC_STACK_TRACE_METHODDEF
11001057 _REMOTE_DEBUGGING_REMOTEUNWINDER_GET_STATS_METHODDEF
11011058 _REMOTE_DEBUGGING_REMOTEUNWINDER_PAUSE_THREADS_METHODDEF
11021059 _REMOTE_DEBUGGING_REMOTEUNWINDER_RESUME_THREADS_METHODDEF
1103- _REMOTE_DEBUGGING_REMOTEUNWINDER_GET_GC_STATS_METHODDEF
11041060 {NULL , NULL }
11051061};
11061062
0 commit comments