mirror of
https://github.com/python/cpython.git
synced 2025-08-07 18:38:38 +00:00
bpo-37990: fix gc stats (GH-15626)
This commit is contained in:
parent
d765d81b8f
commit
013e52fd34
1 changed files with 3 additions and 2 deletions
|
@ -1115,8 +1115,9 @@ collect(struct _gc_runtime_state *state, int generation,
|
||||||
}
|
}
|
||||||
if (state->debug & DEBUG_STATS) {
|
if (state->debug & DEBUG_STATS) {
|
||||||
double d = _PyTime_AsSecondsDouble(_PyTime_GetMonotonicClock() - t1);
|
double d = _PyTime_AsSecondsDouble(_PyTime_GetMonotonicClock() - t1);
|
||||||
PySys_FormatStderr(
|
PySys_WriteStderr(
|
||||||
"gc: done, %zd unreachable, %zd uncollectable, %.4fs elapsed\n",
|
"gc: done, %" PY_FORMAT_SIZE_T "d unreachable, "
|
||||||
|
"%" PY_FORMAT_SIZE_T "d uncollectable, %.4fs elapsed\n",
|
||||||
n+m, n, d);
|
n+m, n, d);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue