- 26 Sep, 2012 1 commit
-
-
Juanma Barranquero authored
($(BLD)/profiler.$(O)): New target.
-
- 25 Sep, 2012 1 commit
-
-
Stefan Monnier authored
memory_profiler_* to profiler_memory_*. Move sigprof_handler before its first use, inside the PROFILER_CPU_SUPPORT conditional.
-
- 24 Sep, 2012 2 commits
-
-
Stefan Monnier authored
* src/profiler.c (evict_lower_half): Fix typo. (PROFILER_CPU_SUPPORT): Check and define if cpu-profiler is supported. Don't compile the cpu-profiler code, if not supported. (malloc_probe): Presume memory_log is non-nil. (syms_of_profiler): Don't defsubr functions when they aren't defined. * src/lisp.h (sample_profiler_running, gc_probe): Don't declare.
-
Stefan Monnier authored
* src/profiler.c: Remove filtering functionality. (is_in_trace, Qgc): Remove vars. (make_log, record_backtrace, Fsample_profiler_log): Rewrite, using Elisp hash-tables. (approximate_median, evict_lower_half): New functions. (cpu_log): Rename from sample_log. (cpu_gc_count): New var. (Fsample_profiler_reset, Fmemory_profiler_reset): Remove. (sigprof_handler): Add count to cpu_gc_count during GC, detected via backtrace_list. (block_sigprof, unblock_sigprof): Remove. (gc_probe, mark_profiler): Remove functions. (syms_of_profiler): Staticpro cpu_log and memory_log. * lisp/profiler.el (profiler-sample-interval): Move before first use. Change default to 1ms. (profiler-entry=, profiler-backtrace-reverse, profiler-log-fixup-slot) (profiler-calltree-elapsed<, profiler-calltree-elapsed>): Remove functions. (profiler-entry-format): Don't use type-of. (profiler-slot, profiler-log): Remove structs. (profiler-log-timestamp, profiler-log-type, profiler-log-diff-p): Redefine for new log representation. (profiler-log-diff, profiler-log-fixup, profiler-calltree-build-1): Rewrite for new log representation. (profiler-calltree): Remove `elapsed' fields. (profiler-calltree-count<, profiler-report-make-entry-part): Remove gc special case. (profiler-calltree-find): Use equal. (profiler-calltree-walk): Remove `args'; rely on closures instead. (profiler-calltree-compute-percentages-1): Remove; inlined. (profiler-calltree-compute-percentages): Simplify. (profiler-report-log, profiler-report-reversed) (profiler-report-order): Use defvar-local. (profiler-report-line-format): Remove `elapsed', do a bit of CSE. (profiler-report-mode-map): Remove up/down bindings. (profiler-report-make-buffer-name): Simplify by CSE. (profiler-report-mode): Remove redundant code. (profiler-report-expand-entry, profiler-report-collapse-entry): Use inhibit-read-only. (profiler-report-render-calltree-1): Simplify by CSE. (profiler-reset): Rewrite for new subroutines. (profiler--report-cpu): Rename from sample-profiler-report. (profiler--report-memory): Rename from memory-profiler-report. * src/alloc.c (Fgarbage_collect): Record itself in backtrace_list. Don't set is_in_trace any more. Don't call mark_profiler. Only call gc_probe for the memory profiler. (syms_of_alloc): Define Qautomatic_gc. * src/lisp.h (SXHASH_COMBINE): Move back to... * src/fns.c (SXHASH_COMBINE): ...here. * src/xdisp.c (Qautomatic_redisplay): New constant. (redisplay_internal): Record itself in backtrace_list. (syms_of_xdisp): Define Qautomatic_redisplay. * .dir-locals.el (indent-tabs-mode): Remove personal preference.
-
- 15 Sep, 2012 1 commit
-
-
Tomohiro Matsuyama authored
-
- 23 Aug, 2012 1 commit
-
-
Tomohiro Matsuyama authored
-
- 22 Aug, 2012 9 commits
-
-
Tomohiro Matsuyama authored
-
Tomohiro Matsuyama authored
(with-memory-profiling): New macro.
-
Tomohiro Matsuyama authored
-
Tomohiro Matsuyama authored
-
Tomohiro Matsuyama authored
-
Daiki Ueno authored
Fixes: debbugs:12257
-
Josh Feinstein authored
* erc-join.el (erc-autojoin-timing): Fix defcustom type.
-
Edward O'Connor authored
Ref: http://lists.gnu.org/archive/html/emacs-devel/2012-08/msg00642.html * lisp/json.el (json-key-format): Add error properties. (json-encode-key): New function. (json-encode-hash-table, json-encode-alist, json-encode-plist): Use json-encode-key.
-
Glenn Morris authored
* lisp/calendar/cal-tex.el (cal-tex-longday): New function, replacing... (cal-tex-leftday, cal-tex-rightday): Remove functions. (cal-tex-weekly-common, cal-tex-cursor-filofax-2week): Update for above change.
-
- 21 Aug, 2012 25 commits
-
-
Paul Eggert authored
(gc_in_progress, abort_on_gc) (setjmp_tested_p) [!GC_SAVE_REGISTERS_ON_STACK && !GC_SETJMP_WORKS]: (dont_register_blocks) [GC_MALLOC_CHECK]: (suppress_checking) [ENABLE_CHECKING]: Now bool, not int. (check_string_bytes, make_specified_string, memory_full) (live_string_p, live_cons_p, live_symbol_p, live_float_p) (live_misc_p, live_vector_p, live_buffer_p, mark_maybe_object) (mark_stack, valid_pointer_p, make_pure_string) (Fgarbage_collect, survives_gc_p, gc_sweep): Use bool for booleans, instead of int. (test_setjmp) [!GC_SAVE_REGISTERS_ON_STACK && !GC_SETJMP_WORKS]: Remove unused local. * alloc.c (PURE_POINTER_P): * lisp.h (STRING_MULTIBYTE): Document that it returns a boolean. * editfns.c (Fformat): * fileio.c (Fexpand_file_name, Fsubstitute_in_file_name) (Fdo_auto_save): * fns.c (sweep_weak_table): * lisp.h (suppress_checking, push_message, survives_gc_p) (make_pure_string, gc_in_progress, abort_on_gc): * lread.c (readchar, read1): * print.c (Fprin1_to_string): * xdisp.c (push_message): Use bool for booleans affected directly or indirectly by alloc.c's changes.
-
Paul Eggert authored
* fontset.c (set_fontset_id, set_fontset_name, set_fontset_ascii) (set_fontset_base, set_fontset_frame, set_fontset_nofont_face) (set_fontset_default, set_fontset_fallback): Rename from their upper-case counterparts, and make them functions rather than macros. This is more consistent with the other recently-introduced setters. These don't need to be inline, since they're local.
-
Andreas Schwab authored
* cus-face.el (custom-face-attributes): Fix customize type for the :underline attribute.
-
Jan Djärv authored
the loop. Fixes: debbugs:12247
-
Glenn Morris authored
-
Glenn Morris authored
* lisp/calendar/cal-tex.el (cal-tex-weekly-common): New function. (cal-tex-cursor-week-at-a-glance, cal-tex-cursor-filofax-week): Use it.
-
Glenn Morris authored
* calendar/cal-tex.el (cal-tex-rightday): Add optional funcname arg. (cal-tex-shortday): New function. (cal-tex-cursor-week-at-a-glance, cal-tex-cursor-filofax-week) (cal-tex-cursor-filofax-daily): Use the above.
-
Paul Eggert authored
This fixes a performance regression introduced by the recent addition of vcopy. This means 'vcopy' will need to be modified for a copying collector, but that's OK. Also, tighten the checking in the assertion.
-
Eli Zaretskii authored
src/w32uniscribe.c (uniscribe_shape): Fix producing gstring components for RTL text. Adjust X-OFFSET of each non-base glyph for the width of the base character, according to what x_draw_composite_glyph_string_foreground expects. Generate WADJUST value according to composition_gstring_width's expectations, to produce correct width of the composed character. Reverse the sign of the DU offset produced by ScriptPlace.
-
Paul Eggert authored
-
Paul Eggert authored
-
Dmitry Antipov authored
* lisp.h (vcopy): New function to copy data into vector. * dispnew.c (Fframe_or_buffer_changed_p): Use AREF and ASET. * fns.c (Ffillarray): Use ASET. * keyboard.c (timer_check_2): Use AREF and ASET. (append_tool_bar_item, Frecent_keys): Use vcopy. * lread.c (read_vector): Use ASET. * msdos.c (Frecent_doskeys): Use vcopy. * xface.c (Finternal_copy_lisp_face): Use vcopy. (Finternal_merge_in_global_face): Use ASET and vcopy. * xfont.c (xfont_list_pattern): Likewise.
-
Glenn Morris authored
-
Martin Rudalics authored
* windows.texi (Window Point): Document recent changes in window-point and set-window-point. (Selecting Windows): Document recent change in select-window.
-
Martin Rudalics authored
* window.c (Fwindow_point): For the selected window always return the position of its buffer's point. (Fset_window_point): For the selected window always go in its buffer to the specified position. * window.el (window-point-1, set-window-point-1): Remove. (window-in-direction, record-window-buffer) (set-window-buffer-start-and-point, split-window-below) (window--state-get-1, display-buffer-record-window): Replace calls to window-point-1 and set-window-point-1 by calls to window-point and set-window-point respectively.
-
Glenn Morris authored
* lisp/calendar/cal-tex.el (cal-tex-leftday, cal-tex-rightday): New functions. (cal-tex-cursor-week-at-a-glance, cal-tex-cursor-filofax-2week) (cal-tex-cursor-filofax-week): Use them.
-
Julien Danjou authored
* erc-match.el (erc-match-message): Use `erc-match-exclude-server-buffer' not `erc-track-exclude-server-buffer'.
-
Glenn Morris authored
* lisp/calendar/cal-tex.el (cal-tex-lefthead, cal-tex-righthead): New constants. (cal-tex-cursor-week-at-a-glance, cal-tex-cursor-filofax-2week) (cal-tex-cursor-filofax-week, cal-tex-cursor-filofax-daily): Use them.
-
Glenn Morris authored
* lisp/calendar/cal-tex.el (cal-tex-preamble): Generate new buffers. (cal-tex-end-document): Don't rely on buffer name.
-
Glenn Morris authored
* lisp/calendar/cal-tex.el (cal-tex-scriptsize, cal-tex-huge) (cal-tex-Huge, cal-tex-large): Use cal-tex-arg.
-
Glenn Morris authored
* lisp/calendar/cal-tex.el (cal-tex-cursor-filofax-year): Use cal-tex-vspace. (cal-tex-vspace, cal-tex-hspace, cal-tex-em, cal-tex-bf) (cal-tex-Huge-bf, cal-tex-large-bf): Use cal-tex-cmd.
-
Glenn Morris authored
* lisp/calendar/cal-tex.el (cal-tex-cursor-filofax-year) (cal-tex-cursor-week, cal-tex-cursor-week2) (cal-tex-cursor-week-iso, cal-tex-cursor-week-at-a-glance) (cal-tex-cursor-filofax-2week, cal-tex-cursor-filofax-week) (cal-tex-cursor-filofax-daily, cal-tex-cursor-day) (cal-tex-insert-preamble, cal-tex-b-document) (cal-tex-e-document, cal-tex-b-center, cal-tex-e-center): Improve cal-tex-cmd usage.
-
Dmitry Antipov authored
* fontset.c (SET_FONTSET_ID, SET_FONTSET_NAME, SET_FONTSET_ASCII) (SET_FONTSET_BASE, SET_FONTSET_FRAME, SET_FONTSET_NOFONT_FACE) (SET_FONTSET_DEFAULT, SET_FONTSET_FALLBACK): New macros. Adjust users.
-
Glenn Morris authored
* lisp/calendar/cal-tex.el (cal-tex-filofax-paper): New function. (cal-tex-cursor-filofax-year, cal-tex-cursor-filofax-2week) (cal-tex-cursor-filofax-week, cal-tex-cursor-filofax-daily): Use it. (cal-tex-weekly-paper): New function. (cal-tex-cursor-week, cal-tex-cursor-week2) (cal-tex-cursor-week-iso, cal-tex-cursor-week-monday) (cal-tex-cursor-day): Use it.
-
Glenn Morris authored
* lisp/calendar/cal-tex.el (cal-tex-cursor-week-at-a-glance) (cal-tex-cursor-filofax-week): Remove leading blank page. (Were these supposed to serve some purpose? Printing?)
-