emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Latency profiling?


From: Stefan Monnier
Subject: Re: Latency profiling?
Date: Sun, 18 Mar 2018 21:25:29 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> What is the best way to emulate interactive user input and reliably assess
> the speed with which said input is processed?

I guess what you want is to use execute-kbd-macro in an interactive
Emacs session.  Tho, currently it seems that execute-kbd-macro will end
up short-circuiting the redisplay (normally redisplay is called when we
call keyboard.c:read_char, but while inside a keyboard-macro this
function will return the next "key" immediately without getting to the
redisplay call).

I think it would be valuable to make such an execution mode available
(you can probably mimick it tolerably well by just adding explicit
(redisplay t) calls between each command).


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]