summaryrefslogtreecommitdiffstats
path: root/Objects/object.c
diff options
context:
space:
mode:
authorSjoerd Mullender <sjoerd@acm.org>1993-10-25 08:40:52 (GMT)
committerSjoerd Mullender <sjoerd@acm.org>1993-10-25 08:40:52 (GMT)
commit52c1f515547a96898879fe60e2432b69ff95cca0 (patch)
tree294896c67c57a218d91b6c2b11aa38187b3f7cef /Objects/object.c
parent89b3325dc4d6999bb00068e048a76f7eba23a7a5 (diff)
downloadcpython-52c1f515547a96898879fe60e2432b69ff95cca0.zip
cpython-52c1f515547a96898879fe60e2432b69ff95cca0.tar.gz
cpython-52c1f515547a96898879fe60e2432b69ff95cca0.tar.bz2
import.c: When something is wrong with the .pyc, properly open the .py
file. object.c: Write allocation statistics to stderr.
Diffstat (limited to 'Objects/object.c')
-rw-r--r--Objects/object.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/Objects/object.c b/Objects/object.c
index f2d801b..73fba50 100644
--- a/Objects/object.c
+++ b/Objects/object.c
@@ -45,14 +45,15 @@ dump_counts()
typeobject *tp;
for (tp = type_list; tp; tp = tp->tp_next)
- printf("%s alloc'd: %d, freed: %d, max in use: %d\n",
- tp->tp_name, tp->tp_alloc, tp->tp_free,
- tp->tp_maxalloc);
- printf("fast tuple allocs: %d, empty: %d\n", fast_tuple_allocs,
- tuple_zero_allocs);
- printf("fast int allocs: pos: %d, neg: %d\n", quick_int_allocs,
- quick_neg_int_allocs);
- printf("null strings: %d, 1-strings: %d\n", null_strings, one_strings);
+ fprintf(stderr, "%s alloc'd: %d, freed: %d, max in use: %d\n",
+ tp->tp_name, tp->tp_alloc, tp->tp_free,
+ tp->tp_maxalloc);
+ fprintf(stderr, "fast tuple allocs: %d, empty: %d\n",
+ fast_tuple_allocs, tuple_zero_allocs);
+ fprintf(stderr, "fast int allocs: pos: %d, neg: %d\n",
+ quick_int_allocs, quick_neg_int_allocs);
+ fprintf(stderr, "null strings: %d, 1-strings: %d\n",
+ null_strings, one_strings);
}
void