unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: Q on performance with 10000 faces
Date: Tue, 23 May 2006 17:06:40 -0400	[thread overview]
Message-ID: <jwvodxosbaa.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <u8xosftxn.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 23 May 2006 22:00:04 +0300")

>> I use the patch below (under GNU/Linux) to provide a `moncontrol' elisp file
>> that allows me to start/stop C profiling so I can start it once I get into
>> a "strangely slow" state.

> I think this is a good idea, and it will work on MS-Windows as well,
> at least in the MinGW build.

> Richard, is it okay for Stefan to install the patch below?  I don't
> see how can it possibly do any harm.

I'd be a bit nervous to add a reference to a function `moncontrol' just
like that.  I did it as a quick hack at a time I needed it.  But if it's
conditionalized on PROFILING, maybe it's OK.


        Stefan


>> --- orig/src/emacs.c
>> +++ mod/src/emacs.c
>> @@ -1769,7 +1777,7 @@
>> defined on all systems now.  */
>> monstartup (safe_bcopy, &etext);
>> }
>> -  else
>> +  /* else */
>> moncontrol (0);
>> #endif
>> #endif
>> @@ -1791,6 +1799,14 @@
>> return 0;
>> }
>> \f
>> +DEFUN ("moncontrol", Fmoncontrol, Smoncontrol, 1, 1, 0,
>> +				/* doc: toggle profiling.  */)
>> +     (arg)
>> +     Lisp_Object arg;
>> +{
>> +  return moncontrol (!NILP (arg)) ? Qt : Qnil;
>> +}
>> +
>> /* Sort the args so we can find the most important ones
>> at the beginning of argv.  */
>> 
>> @@ -2450,6 +2466,7 @@
>> 
>> defsubr (&Sinvocation_name);
>> defsubr (&Sinvocation_directory);
>> +  defsubr (&Smoncontrol);
>> 
>> DEFVAR_LISP ("command-line-args", &Vcommand_line_args,
>> doc: /* Args passed by shell to Emacs, as a list of strings.

  reply	other threads:[~2006-05-23 21:06 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-22  0:02 Q on performance with 10000 faces Drew Adams
2006-05-22  3:41 ` Eli Zaretskii
2006-05-22  6:26   ` Drew Adams
2006-05-22  6:42     ` Miles Bader
2006-05-22 13:39       ` Drew Adams
2006-05-22  8:15     ` Kim F. Storm
2006-05-22 13:47       ` Drew Adams
2006-05-22 12:59     ` Stefan Monnier
2006-05-22 13:49       ` Drew Adams
2006-05-22 18:45         ` Eli Zaretskii
2006-05-22 18:44       ` Eli Zaretskii
2006-06-02 15:04         ` Drew Adams
2006-06-03  1:43           ` Drew Adams
2006-06-04 22:39             ` Kim F. Storm
2006-06-05  0:29               ` Drew Adams
2006-06-05 21:35                 ` Kim F. Storm
2006-06-06  6:53                   ` Drew Adams
2006-05-22 18:41     ` Eli Zaretskii
2006-05-22 20:59       ` Drew Adams
2006-05-22 22:30         ` Drew Adams
2006-05-22 23:28           ` Kevin Rodgers
2006-05-23  0:41             ` Drew Adams
2006-05-23  0:43         ` Luc Teirlinck
2006-05-23  1:25           ` Drew Adams
2006-05-25 16:21             ` Drew Adams
2006-05-23 11:08         ` Stefan Monnier
2006-05-23 14:07           ` Drew Adams
2006-05-23 23:48             ` Luc Teirlinck
2006-05-24  0:02               ` Drew Adams
2006-05-23 19:00           ` Eli Zaretskii
2006-05-23 21:06             ` Stefan Monnier [this message]
2006-05-24  5:50               ` Richard Stallman
2006-05-24 12:02                 ` Stefan Monnier
2006-05-25  0:36                   ` Richard Stallman
2006-05-25  3:22                     ` Eli Zaretskii
2006-05-25 16:31                       ` Richard Stallman
2006-05-22 15:12 ` Richard Stallman
2006-05-22 15:18   ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvodxosbaa.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).