Mercurial > hg > xemacs-beta
annotate etc/VEGETABLES @ 5160:ab9ee10a53e4
fix various problems with allocation statistics, track overhead properly
-------------------- ChangeLog entries follow: --------------------
lisp/ChangeLog addition:
2010-03-20 Ben Wing <ben@xemacs.org>
* diagnose.el (show-memory-usage):
* diagnose.el (show-object-memory-usage-stats):
Further changes to correspond with changes in the C code;
add an additional column showing the overhead used with each type,
and add it into the grand total memory usage.
src/ChangeLog addition:
2010-03-20 Ben Wing <ben@xemacs.org>
* alloc.c:
* alloc.c (init_lrecord_stats):
* alloc.c (free_normal_lisp_object):
* alloc.c (struct):
* alloc.c (clear_lrecord_stats):
* alloc.c (tick_lrecord_stats):
* alloc.c (COUNT_FROB_BLOCK_USAGE):
* alloc.c (COPY_INTO_LRECORD_STATS):
* alloc.c (sweep_strings):
* alloc.c (UNMARK_string):
* alloc.c (gc_sweep_1):
* alloc.c (finish_object_memory_usage_stats):
* alloc.c (object_memory_usage_stats):
* alloc.c (object_dead_p):
* alloc.c (fixed_type_block_overhead):
* alloc.c (lisp_object_storage_size):
* emacs.c (main_1):
* lisp.h:
* lrecord.h:
Export lisp_object_storage_size() and malloced_storage_size() even
when not MEMORY_USAGE_STATS, to get the non-MEMORY_USAGE_STATS
build to compile.
Don't export fixed_type_block_overhead() any more.
Some code cleanup, rearrangement, add some section headers.
Clean up various bugs especially involving computation of overhead
and double-counting certain usage in total_gc_usage. Add
statistics computing the overhead used by all types. Don't add a
special entry for string headers in the object-memory-usage-stats
because it's already present as just "string". But do count the
overhead used by long strings. Don't try to call the
memory_usage() methods when NEW_GC because there's nowhere obvious
in the sweep stage to make the calls.
* marker.c (compute_buffer_marker_usage):
Just use lisp_object_storage_size() rather than trying to
reimplement it.
author | Ben Wing <ben@xemacs.org> |
---|---|
date | Sat, 20 Mar 2010 20:20:30 -0500 |
parents | ae97e44a6527 |
children |
rev | line source |
---|---|
636 | 1 alfalfa |
2 anise | |
3 artichoke | |
4 asparagus | |
5 bamboo | |
6 beets | |
7 bok choi | |
8 broccoflower | |
9 broccoli | |
10 brussels sprouts | |
11 burdock | |
12 cabbage | |
13 carrot | |
14 cauliflower | |
15 cassava | |
16 celery | |
17 celeriac | |
18 chayote | |
19 chestnut | |
20 chives | |
21 cilantro | |
22 corn | |
23 cucumber | |
24 daikon | |
25 dandelion | |
26 eggplant | |
27 endive | |
28 fiddleheads | |
29 fuki | |
30 garbanzo | |
31 garlic | |
32 ginger | |
33 habanero | |
34 horseradish | |
35 kale | |
36 kohlarbi | |
37 leeks | |
38 lettuce | |
39 lima bean | |
40 marjoram | |
41 mushroom | |
42 mustard | |
43 okra | |
44 onion | |
45 parsley | |
46 peanut | |
47 pimento | |
48 potato | |
49 pumpkin | |
50 radish | |
51 rutabaga | |
52 renkon | |
53 satoimo | |
54 shallots | |
55 sorrel | |
56 spinach | |
57 squash | |
58 swisschard | |
59 taro | |
60 tomato | |
61 turnip | |
62 watercress | |
63 yam | |
64 yucca | |
65 zucchini |