all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: Eli Zaretskii <eliz@gnu.org>
Cc: wyuenho@gmail.com, emacs-devel@gnu.org
Subject: Re: How to measure frame rate in fps?
Date: Sun, 6 Jun 2021 05:09:09 +0300	[thread overview]
Message-ID: <e032895f-4a6c-1463-20ff-9b4891df156a@yandex.ru> (raw)
In-Reply-To: <834kehyp6s.fsf@gnu.org>

On 02.06.2021 05:29, Eli Zaretskii wrote:
> Maybe run Emacs under 'perf' and see which GTK API call(s) take(s)
> most of those milliseconds?

I'm not sure if I've been doing it right, but the gtk functions seem to 
be taking pretty much none of the runtime:

    0,00%  emacs  libgtk-3.so.0.2404.16  [.] gtk_widget_get_direction
    0,00%  emacs  libgtk-3.so.0.2404.16  [.] gtk_widget_get_type 

    0,00%  emacs  libgtk-3.so.0.2404.16  [.] gtk_style_context_get_property
    0,00%  emacs  libgtk-3.so.0.2404.16  [.] gtk_get_event_widget
    0,00%  emacs  libgtk-3.so.0.2404.16  [.] gtk_style_context_get_type
    0,00%  emacs  libgtk-3.so.0.2404.16  [.] gtk_toolbar_get_type

The leaders looked like:

   28,52%  emacs         emacs                       [.] mark_object 

    6,87%  emacs         emacs                       [.] assq_no_quit 

    3,45%  emacs         emacs                       [.] mark_char_table 

    3,37%  emacs         emacs                       [.] sweep_strings 

    2,84%  emacs         emacs                       [.] boyer_moore 

    1,82%  emacs         emacs                       [.] 
pdumper_marked_p_impl
    1,80%  emacs         emacs                       [.] 
re_match_2_internal
    1,69%  emacs         emacs                       [.] 
lookup_char_property
    1,57%  emacs         emacs                       [.] 
set_buffer_internal_2
    1,54%  emacs         emacs                       [.] eval_sub 

    1,42%  emacs         emacs                       [.] Fassq 

    1,41%  emacs         emacs                       [.] sweep_conses 

    1,33%  emacs         emacs                       [.] sweep_vectors 

    1,02%  emacs         emacs                       [.] exec_byte_code 

    0,97%  emacs         emacs                       [.] mark_vectorlike 

    0,95%  emacs         emacs                       [.] next_interval 

    0,92%  emacs         emacs                       [.] find_interval 

    0,79%  emacs         libc-2.31.so                [.] 
__memmove_avx_unaligned_erms
    0,64%  emacs         emacs                       [.] 
pdumper_set_marked_impl
    0,62%  emacs         libc-2.31.so                [.] malloc 

    0,62%  emacs         emacs                       [.] Fcons 

    0,61%  emacs         libc-2.31.so                [.] _int_malloc 

    0,58%  emacs         emacs                       [.] 
gui_produce_glyphs
    0,52%  emacs         emacs                       [.] list_length 

    0,49%  emacs         emacs                       [.] Ffuncall 

    0,46%  emacs         emacs                       [.] Fcdr 

    0,42%  emacs         libpthread-2.31.so          [.] 
__pthread_mutex_unlock
    0,40%  emacs         emacs                       [.] 
scan_sexps_forward
    0,40%  emacs         libpthread-2.31.so          [.] 
__pthread_mutex_lock
    0,38%  emacs         emacs                       [.] 
allocate_vectorlike
    0,36%  emacs         libcairo.so.2.11600.0       [.] 
cairo_scaled_font_text_to_glyphs
    0,36%  emacs         emacs                       [.] 
composition_compute_stop_pos
    0,35%  emacs         emacs                       [.] 
bidi_resolve_explicit
    0,35%  emacs         emacs                       [.] 
get_next_display_element
    0,35%  emacs         emacs                       [.] Fplist_get 

    0,34%  emacs         libc-2.31.so                [.] _int_free 

    0,33%  emacs         emacs                       [.] Faref 

    0,33%  emacs         emacs                       [.] 
move_it_in_display_line_to
    0,32%  emacs         emacs                       [.] 
balance_an_interval
    0,32%  emacs         emacs                       [.] get_keymap 

    0,29%  emacs         emacs                       [.] 
do_symval_forwarding
    0,28%  emacs         emacs                       [.] 
set_default_internal
    0,26%  emacs         emacs                       [.] hash_lookup 

    0,26%  emacs         emacs                       [.] 
vectorlike_nbytes
    0,25%  emacs         emacs                       [.] 
rpl_re_compile_pattern
    0,25%  emacs         emacs                       [.] json_to_lisp 

    0,25%  emacs         emacs                       [.] 
bidi_level_of_next_char
    0,24%  emacs         libc-2.31.so                [.] 
malloc_consolidate
    0,23%  emacs         emacs                       [.] 
bidi_resolve_weak
    0,23%  emacs         emacs                       [.] 
find_automatic_composition
    0,23%  emacs         emacs                       [.] grow_specpdl 

    0,23%  emacs         emacs                       [.] mark_compiled 




  reply	other threads:[~2021-06-06  2:09 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-31 13:03 How to measure frame rate in fps? Jimmy Yuen Ho Wong
2021-06-01 10:00 ` Arthur Miller
2021-06-01 11:43 ` Eli Zaretskii
2021-06-01 14:18   ` Dmitry Gutov
2021-06-01 14:43     ` Eli Zaretskii
2021-06-01 15:00       ` Dmitry Gutov
2021-06-01 15:35         ` Eli Zaretskii
2021-06-01 21:31           ` Dmitry Gutov
2021-06-02  2:29             ` Eli Zaretskii
2021-06-06  2:09               ` Dmitry Gutov [this message]
2021-06-06  6:11                 ` Eli Zaretskii
2021-06-06 12:00                   ` Dmitry Gutov
2021-06-06 12:36                     ` Eli Zaretskii
2021-06-06 16:48                       ` Dmitry Gutov
2021-06-06 17:19                         ` Eli Zaretskii
2021-06-06 23:31                           ` Dmitry Gutov
2021-06-07 12:33                             ` Eli Zaretskii
2021-06-06 18:10                         ` Stefan Monnier
2021-06-06 23:35                           ` Dmitry Gutov

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=e032895f-4a6c-1463-20ff-9b4891df156a@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=wyuenho@gmail.com \
    /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.