Mercurial > hg > xemacs-beta
annotate etc/emacsstrs.sco @ 5170:5ddbab03b0e6
various fixes to memory-usage stats
-------------------- ChangeLog entries follow: --------------------
lisp/ChangeLog addition:
2010-03-25 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 in show-object-memory-usage-stats showing
the ancillary Lisp overhead used with each type; shrink columns for
windows in show-memory-usage to get it to fit in 79 chars.
src/ChangeLog addition:
2010-03-25 Ben Wing <ben@xemacs.org>
* alloc.c:
* alloc.c (struct):
* alloc.c (finish_object_memory_usage_stats):
* alloc.c (object_memory_usage_stats):
* alloc.c (Fobject_memory_usage):
* alloc.c (lisp_object_memory_usage_full):
* alloc.c (compute_memusage_stats_length):
* lrecord.h:
* lrecord.h (struct lrecord_implementation):
Add fields to the `lrecord_implementation' structure to list an
offset into the array of extra statistics in a
`struct generic_usage_stats' and a length, listing the first slice
of ancillary Lisp-object memory. Compute automatically in
compute_memusage_stats_length(). Use to add an entry
`FOO-lisp-ancillary-storage' for object type FOO.
Don't crash when an int or char is given to object-memory-usage,
signal an error instead.
Add functions lisp_object_memory_usage_full() and
lisp_object_memory_usage() to compute the total memory usage of an
object (sum of object, non-Lisp attached, and Lisp ancillary
memory).
* array.c:
* array.c (gap_array_memory_usage):
* array.h:
Add function to return memory usage of a gap array.
* buffer.c (struct buffer_stats):
* buffer.c (compute_buffer_usage):
* buffer.c (vars_of_buffer):
* extents.c (compute_buffer_extent_usage):
* marker.c:
* marker.c (compute_buffer_marker_usage):
* extents.h:
* lisp.h:
Remove `struct usage_stats' arg from compute_buffer_marker_usage()
and compute_buffer_extent_usage() -- these are ancillary Lisp
objects and don't get accumulated into `struct usage_stats';
change the value of `memusage_stats_list' so that `markers' and
`extents' memory is in Lisp-ancillary, where it belongs.
In compute_buffer_marker_usage(), use lisp_object_memory_usage()
rather than lisp_object_storage_size().
* casetab.c:
* casetab.c (case_table_memory_usage):
* casetab.c (vars_of_casetab):
* emacs.c (main_1):
Add memory usage stats for case tables.
* lisp.h:
Add comment explaining the `struct generic_usage_stats' more,
as well as the new fields in lrecord_implementation.
* console-impl.h:
* console-impl.h (struct console_methods):
* scrollbar-gtk.c:
* scrollbar-gtk.c (gtk_compute_scrollbar_instance_usage):
* scrollbar-msw.c:
* scrollbar-msw.c (mswindows_compute_scrollbar_instance_usage):
* scrollbar-x.c:
* scrollbar-x.c (x_compute_scrollbar_instance_usage):
* scrollbar.c:
* scrollbar.c (struct scrollbar_instance_stats):
* scrollbar.c (compute_all_scrollbar_instance_usage):
* scrollbar.c (scrollbar_instance_memory_usage):
* scrollbar.c (scrollbar_objects_create):
* scrollbar.c (vars_of_scrollbar):
* scrollbar.h:
* symsinit.h:
* window.c:
* window.c (find_window_mirror_maybe):
* window.c (struct window_mirror_stats):
* window.c (compute_window_mirror_usage):
* window.c (window_mirror_memory_usage):
* window.c (compute_window_usage):
* window.c (window_objects_create):
* window.c (syms_of_window):
* window.c (vars_of_window):
Redo memory-usage associated with windows, window mirrors, and
scrollbar instances. Should fix crash in find_window_mirror,
among other things. Properly assign memo ry to object memory,
non-Lisp extra memory, and Lisp ancillary memory. For example,
redisplay structures are non-Lisp memory hanging off a window
mirror, not a window; make it an ancillary Lisp-object field.
Window mirrors and scrollbar instances have their own statistics,
among other things.
author | Ben Wing <ben@xemacs.org> |
---|---|
date | Thu, 25 Mar 2010 06:07:25 -0500 |
parents | 376386a54a3c |
children |
rev | line source |
---|---|
0 | 1 String key values |
2 "\033[M" Function #1 | |
3 "\033[N" Function #2 | |
4 "\033[O" Function #3 | |
5 "\033[P" Function #4 | |
6 "\033[Q" Function #5 | |
7 "\033[R" Function #6 | |
8 "\033[S" Function #7 | |
9 "\033[T" Function #8 | |
10 "\033[U" Function #9 | |
11 "\033[V" Function #10 | |
12 "\033[W" Function #11 | |
13 "\033[X" Function #12 | |
14 "\033[Y" Shift Function #1 | |
15 "\033[Z" Shift Function #2 | |
16 "\033[a" Shift Function #3 | |
17 "\033[b" Shift Function #4 | |
18 "\033[c" Shift Function #5 | |
19 "\033[d" Shift Function #6 | |
20 "\033[e" Shift Function #7 | |
21 "\033[f" Shift Function #8 | |
22 "\033[g" Shift Function #9 | |
23 "\033[h" Shift Function #10 | |
24 "\033[i" Shift Function #11 | |
25 "\033[j" Shift Function #12 | |
26 "\033[k" Control Function #1 | |
27 "\033[l" Control Function #2 | |
28 "\033[m" Control Function #3 | |
29 "\033[n" Control Function #4 | |
30 "\033[o" Control Function #5 | |
31 "\033[p" Control Function #6 | |
32 "\033[q" Control Function #7 | |
33 "\033[r" Control Function #8 | |
34 "\033[s" Control Function #9 | |
35 "\033[t" Control Function #10 | |
36 "\033[u" Control Function #11 | |
37 "\033[v" Control Function #12 | |
38 "\033[w" Ctrl/Shft Function #1 | |
39 "\033[x" Ctrl/Shft Function #2 | |
40 "\033[y" Ctrl/Shft Function #3 | |
41 "\033[z" Ctrl/Shft Function #4 | |
42 "\033[@" Ctrl/Shft Function #5 | |
43 "\033[[" Ctrl/Shft Function #6 | |
44 "\033[\\" Ctrl/Shft Function #7 | |
45 "\033[]" Ctrl/Shft Function #8 | |
46 "\033[^" Ctrl/Shft Function #9 | |
47 "\033[_" Ctrl/Shft Function #10 | |
48 "\033[`" Ctrl/Shft Function #11 | |
49 "\033[{" Ctrl/Shft Function #12 | |
50 "\033[H" Home | |
51 "\033[A" Up arrow | |
52 "\033[I" Page up | |
53 "\033[-" - | |
54 "\033[D" Left arrow | |
55 "\033[E" 5 | |
56 "\033[C" Right arrow | |
57 "\033[+" + | |
58 "\033[F" End | |
59 "\033[B" Down arrow | |
60 "\033[G" Page down | |
61 "\033[L" Insert | |
62 "\033]A" Shift Home | |
63 "\033]B" Shift Up | |
64 "\033]C" Shift PgUp | |
65 "\033]D" Shift Left | |
66 "\033]E" Shift Right | |
67 "\033]F" Shift End | |
68 "\033]G" Shift Down | |
69 "\033]H" Shift PgDn | |
70 "\033]I" Shift Insert | |
71 "\033]J" Shift Delete | |
72 "\033]K" Ctrl Home | |
73 "\033]L" Ctrl Up | |
74 "\033]M" Ctrl PgUp | |
75 "\033]N" Ctrl Left | |
76 "\033]O" Ctrl Right | |
77 "\033]P" Ctrl End | |
78 "\033]Q" Ctrl Down | |
79 "\033]R" Ctrl PgDn | |
80 "\033]S" Ctrl Insert | |
81 "\033]T" Ctrl Delete | |
82 "\033]U" Alt Home | |
83 "\033]V" Alt Up | |
84 "\033]W" Alt PgUp | |
85 "\033]X" Alt Left | |
86 "\033]Y" Alt Right | |
87 "\033]Z" Alt End | |
88 "\033]a" Alt Down | |
89 "\033]b" Alt PgDn | |
90 "\033]c" Alt Insert | |
91 "\033]d" Alt Delete | |
92 "\033]e" Ctrl Keypad + | |
93 "\033]f" Ctrl Keypad - | |
94 "\033]g" Ctrl Keypad 5 | |
95 "\033]h" Alt Keypad + | |
96 "\033]i" Alt Keypad - | |
97 "\033]j" Alt Keypad 5 |