all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: rudalics@gmx.at, eggert@cs.ucla.edu,
	Stefan Monnier <monnier@iro.umontreal.ca>,
	emacs-devel@gnu.org
Subject: Re: Tooltips GC overhead
Date: Sat, 08 Aug 2015 09:01:09 +0200	[thread overview]
Message-ID: <87oaiii7re.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <83h9oaqnuo.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 08 Aug 2015 09:46:23 +0300")

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Stefan Monnier <monnier@iro.umontreal.ca>
>> Cc: rudalics@gmx.at,  eggert@cs.ucla.edu,  emacs-devel@gnu.org
>> Date: Fri, 07 Aug 2015 17:25:37 -0400
>> 
>> >> I'd welcome a patch which uses such a "sampling watchpoint", since it
>> >> would even speed up the code by removing the code that counts calls
>> >> to malloc.
>> > Sorry, your jokes are beyond me.
>> 
>> You must have misunderstood, because that was no joke at all.  I really
>> mean it: I'd be happy to see a patch which uses the same trick used by
>> GDB to add a "watchpoint".
>
> GDB uses debug registers and the debug interface that catches the
> resulting signal/exception, something a well-behaving program that is
> not a debugger should never do.

Well, but in this case we want to debug a problem.  So it might be worth
considering how to make it easy and/or standard to generate/retrieve the
desired information from a debugger.  Interpreted languages like
GUILE/Elisp tend to be a real mess to debug regarding the setting of
break points and trapping on virtual machine registers and so on.  The
question is how one could make it easier to immerse the debugger in the
world view of an interpreted/VM application and use its hardware tools
for debugging problems not cast in terms of actual assembly code on the
executing CPU.

Zero-expense Lisp-level hooks that only become available within a
debugging session (and of course have quite non-zero cost when activated
but zero when not) but do not require recompilation would fall in that
class.

Of course, that would be a nice long-term solution.  But the mere
potential for a long-term solution does not solve short-term problems.
In particular if nobody is working on the long-term solutions.

-- 
David Kastrup



  reply	other threads:[~2015-08-08  7:01 UTC|newest]

Thread overview: 47+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-28 12:45 Tooltips GC overhead martin rudalics
2015-07-28 13:53 ` Eli Zaretskii
2015-07-28 15:09   ` martin rudalics
2015-07-28 23:51 ` Stefan Monnier
2015-07-29  7:18   ` martin rudalics
2015-07-29 14:29     ` Paul Eggert
2015-07-29 15:40       ` martin rudalics
2015-07-29 16:33         ` Eli Zaretskii
2015-07-29 18:05           ` martin rudalics
2015-07-29 21:15             ` Paul Eggert
2015-07-30  6:00               ` martin rudalics
2015-07-30  7:08               ` martin rudalics
2015-07-30  7:19                 ` Paul Eggert
2015-07-30  9:05                   ` martin rudalics
2015-07-30 16:36                     ` Eli Zaretskii
2015-07-30 19:53                       ` martin rudalics
2015-07-30 23:09                         ` Stefan Monnier
2015-07-30 23:33                           ` Drew Adams
2015-07-31  6:48                             ` Eli Zaretskii
2015-07-31  6:47                         ` Eli Zaretskii
2016-03-06  9:21                     ` martin rudalics
2016-03-08  8:02                       ` martin rudalics
2015-08-01 10:49               ` martin rudalics
2015-08-03 10:34                 ` Stefan Monnier
2015-08-03 14:56                   ` Eli Zaretskii
2015-08-03 21:13                     ` Stefan Monnier
2015-08-04  2:38                       ` Eli Zaretskii
2015-08-04  7:31                         ` Stefan Monnier
2015-08-04 13:28                           ` Eli Zaretskii
2015-08-07 14:52                             ` Stefan Monnier
2015-08-07 15:23                               ` Eli Zaretskii
2015-08-07 17:26                                 ` Stefan Monnier
2015-08-07 18:20                                   ` Eli Zaretskii
2015-08-07 21:25                                     ` Stefan Monnier
2015-08-08  6:46                                       ` Eli Zaretskii
2015-08-08  7:01                                         ` David Kastrup [this message]
2015-08-07 18:26                                 ` Paul Eggert
2015-08-07 18:59                                   ` Eli Zaretskii
2015-08-08 13:41                           ` Nix
2015-08-08 16:10                             ` Stefan Monnier
2015-08-08 16:13                               ` David Kastrup
2015-08-10 17:05                                 ` Nix
2015-08-10 17:44                                   ` David Kastrup
2015-07-29 16:45         ` Paul Eggert
2015-07-29 18:05           ` martin rudalics
2015-07-29 21:17             ` Paul Eggert
2015-07-30  6:00               ` martin rudalics

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

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

  git send-email \
    --in-reply-to=87oaiii7re.fsf@fencepost.gnu.org \
    --to=dak@gnu.org \
    --cc=eggert@cs.ucla.edu \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=rudalics@gmx.at \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.