unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David Reitter <david.reitter@gmail.com>
To: Anders Lindgren <andlind@gmail.com>
Cc: Emacs-Devel devel <emacs-devel@gnu.org>
Subject: Re: Redisplay: NS port, high CPU load
Date: Wed, 8 Jun 2016 20:44:49 +1000	[thread overview]
Message-ID: <F50C3CF4-C060-4967-A22E-4A26E0BCA32E@gmail.com> (raw)
In-Reply-To: <CABr8ebahnH+t9h9LF2QsOmgKg-oz8ym+fEpVSxecozjPaDXANg@mail.gmail.com>

On Jun 8, 2016, at 5:50 PM, Anders Lindgren <andlind@gmail.com> wrote:

> Enable NSTRACE (this is done in nsterm.h) -- this might give you a bit more information about what happens on the NS port side. You have to launch Emacs from a terminal window, though.

It looks like some tool bar items are triggering this.  Below is what it cycles through.  Hiding the toolbar, switching the buffer, or turning off the major mode makes it go away.  Local variable, non-permanent?

nsmenu.m  : 1134: [396624]  update_frame_tool_bar
nsmenu.m  : 1458: [396625]  | [EmacsToolbar clearActive]
nsmenu.m  : 1551: [396626]  | [EmacsToolbar addDisplayItemWithImage: ...]
nsmenu.m  : 1551: [396627]  | [EmacsToolbar addDisplayItemWithImage: ...]
nsmenu.m  : 1551: [396628]  | [EmacsToolbar addDisplayItemWithImage: ...]
nsmenu.m  : 1551: [396629]  | [EmacsToolbar addDisplayItemWithImage: ...]
nsmenu.m  : 1551: [396630]  | [EmacsToolbar addDisplayItemWithImage: ...]
nsmenu.m  : 1551: [396631]  | [EmacsToolbar addDisplayItemWithImage: ...]
nsmenu.m  : 1551: [396632]  | [EmacsToolbar addDisplayItemWithImage: ...]
nsmenu.m  : 1551: [396633]  | [EmacsToolbar addDisplayItemWithImage: ...]
nsmenu.m  : 1551: [396634]  | [EmacsToolbar addDisplayItemWithImage: ...]
nsmenu.m  : 1551: [396635]  | [EmacsToolbar addDisplayItemWithImage: ...]
nsmenu.m  : 1551: [396636]  | [EmacsToolbar addDisplayItemWithImage: ...]
nsmenu.m  : 1551: [396637]  | [EmacsToolbar addDisplayItemWithImage: ...]
nsmenu.m  : 1551: [396638]  | [EmacsToolbar addDisplayItemWithImage: ...]
nsmenu.m  : 1551: [396639]  | [EmacsToolbar addDisplayItemWithImage: ...]
nsmenu.m  : 1551: [396640]  | [EmacsToolbar addDisplayItemWithImage: ...]
nsmenu.m  : 1509: [396641]  | [EmacsToolbar changed]
nsfns.m   :  529: [396642]  x_implicitly_set_name
nsfns.m   :  579: [396643]  | ns_set_name_as_filename
nsterm.m  : 4715: [396644]  ns_redeem_scroll_bar
nsterm.m  : 9207: [396645]  | [EmacsScroller reprieve]
nsterm.m  : 4530: [396646]  ns_set_vertical_scroll_bar
nsterm.m  : 2654: [396647]  | ns_clear_frame_area
nsterm.m  : 4715: [396648]  ns_redeem_scroll_bar
nsterm.m  : 4743: [396649]  ns_judge_scroll_bars
nsterm.m  : 9215: [396650]  | [EmacsScroller judge]
nsterm.m  : 1076: [396651]  ns_update_begin
nsterm.m  : 1007: [396652]  | ns_update_auto_hide_menu_bar
nsterm.m  : 8225: [396653]  | [EmacsView isFullscreen] ->> 0
nsterm.m  : 1156: [396654]  ns_update_window_begin
nsterm.m  : 1187: [396655]  ns_update_window_end
nsterm.m  : 3004: [396656]  | ns_draw_window_cursor
nsterm.m  : 1156: [396657]  ns_update_window_begin
nsterm.m  : 1187: [396658]  ns_update_window_end
nsterm.m  : 3004: [396659]  | ns_draw_window_cursor
nsterm.m  : 1237: [396660]  ns_update_end
nsterm.m  : 1222: [396661]  | ns_flush
nsterm.m  : 2499: [396662]  ns_frame_up_to_date
nsterm.m  : 1076: [396663]  | ns_update_begin
nsterm.m  : 1007: [396664]  | | ns_update_auto_hide_menu_bar
nsterm.m  : 8225: [396665]  | | [EmacsView isFullscreen] ->> 0
nsterm.m  : 1237: [396666]  | ns_update_end
nsterm.m  : 1222: [396667]  | | ns_flush
nsfns.m   :  529: [396668]  x_implicitly_set_name
nsfns.m   :  579: [396669]  | ns_set_name_as_filename
nsmenu.m  :  122: [396670]  ns_update_menubar
nsterm.m  : 4696: [396671]  ns_condemn_scroll_bars
nsterm.m  : 9199: [396672]  | [EmacsScroller condemn]
nsmenu.m  : 1134: [396673]  update_frame_tool_bar
nsmenu.m  : 1458: [396674]  | [EmacsToolbar clearActive]





  reply	other threads:[~2016-06-08 10:44 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-08  6:04 Redisplay: NS port, high CPU load David Reitter
2016-06-08  7:50 ` Anders Lindgren
2016-06-08 10:44   ` David Reitter [this message]
2016-06-08 19:55     ` Alan Third
2016-06-08 20:12       ` David Reitter
2016-06-09  1:03         ` David Reitter
2016-06-09  8:22           ` David Reitter
2016-06-09  9:25             ` Anders Lindgren
2016-06-09 13:04               ` David Reitter
2016-06-09 14:11                 ` Anders Lindgren
2016-06-09 18:03                   ` David Reitter
2016-06-09 18:52                     ` Anders Lindgren
2016-06-09 23:03                       ` David Reitter
2016-06-10  6:02                         ` Anders Lindgren
2016-06-10  8:16                           ` David Reitter
2016-06-10  9:34                             ` Eli Zaretskii
2016-06-10  9:46                               ` David Reitter
2016-06-10 10:22                                 ` Eli Zaretskii
2016-06-10 10:36                                   ` David Reitter
2016-06-13 18:44                                     ` Anders Lindgren
2016-06-13 19:16                                       ` Eli Zaretskii
2016-06-14 12:07                                         ` David Reitter
2016-06-14 17:02                                           ` Eli Zaretskii
2016-06-15  3:55                                           ` Stefan Monnier
2016-06-14 11:50                                       ` David Reitter

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=F50C3CF4-C060-4967-A22E-4A26E0BCA32E@gmail.com \
    --to=david.reitter@gmail.com \
    --cc=andlind@gmail.com \
    --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).