From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Latency profiling? Date: Sun, 18 Mar 2018 21:25:29 -0400 Message-ID: References: <3b1b3837-dcb6-66c5-3387-43dba8df77c4@arkona-technologies.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1521422666 3380 195.159.176.226 (19 Mar 2018 01:24:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 19 Mar 2018 01:24:26 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Mar 19 02:24:22 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1exjXA-0000jk-Vk for ged-emacs-devel@m.gmane.org; Mon, 19 Mar 2018 02:24:21 +0100 Original-Received: from localhost ([::1]:39773 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1exjZC-0003km-Gn for ged-emacs-devel@m.gmane.org; Sun, 18 Mar 2018 21:26:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37258) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1exjYW-0003kS-SJ for emacs-devel@gnu.org; Sun, 18 Mar 2018 21:25:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1exjYT-0001a7-OC for emacs-devel@gnu.org; Sun, 18 Mar 2018 21:25:44 -0400 Original-Received: from [195.159.176.226] (port=37661 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1exjYT-0001Xg-Gk for emacs-devel@gnu.org; Sun, 18 Mar 2018 21:25:41 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1exjWM-0008RG-Me for emacs-devel@gnu.org; Mon, 19 Mar 2018 02:23:30 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 16 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:Wslireddrr+l2QZwkZ/jARxhu+M= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:223798 Archived-At: > 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