unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Dmitry Bogatov <KAction@gnu.org>
To: "guile-user\@gnu.org" <guile-user@gnu.org>
Subject: Interpreting statprof
Date: Tue, 17 Sep 2013 20:14:21 +0400	[thread overview]
Message-ID: <87r4cn1l42.fsf@gnu.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 2014 bytes --]


Hello!

Today I tried to statprof my toy application, that uses htmlprag
since it is too slow (4 sec on one page) vs 0.5 with Python.
Statprof says, that most of time takes `eval` function, but I checked
htmlprag source --- it does not use eval. So question is where is it
called and what can I do to speedup my application?

PS. Should I attach source file and html file to parse?

%     cumulative   self
time   seconds     seconds      name
 56.48      4.22      2.38  eval
 11.82      0.50      0.50  memoized-expression-data
  9.22      0.39      0.39  list-ref
  8.36      0.35      0.35  memoized-expression-typecode
  4.03      0.17      0.17  write-char
  2.31      0.10      0.10  get-output-string
  1.44      0.06      0.06  list-set!
  1.15      0.05      0.05  variable?
  1.15      0.05      0.05  open-output-string
  0.86      0.04      0.04  read-char
  0.86      0.04      0.04  #<procedure 27e8960 at ice-9/eval.scm:416:20 ()>
  0.58      0.02      0.02  eqv?
  0.29      0.01      0.01  equal?
  0.29      0.01      0.01  memv
  0.29      0.01      0.01  map
  0.29      0.01      0.01  string->symbol
  0.29      0.01      0.01  eof-object?
  0.29      0.01      0.01  #<procedure 253c900 at ice-9/eval.scm:416:20 (a)>
  0.00      4.22      0.00  statprof
  0.00      4.22      0.00  save-module-excursion
  0.00      4.22      0.00  #<procedure 25051c0 at ice-9/boot-9.scm:3961:3 ()>
  0.00      4.22      0.00  #<procedure 27e2690 at statprof.scm:655:4 ()>
  0.00      4.22      0.00  load-compiled/vm
  0.00      4.22      0.00  apply-smob/1
  0.00      4.22      0.00  call-with-prompt
  0.00      4.22      0.00  catch
  0.00      4.22      0.00  perform-action
---
Sample count: 347
Total time: 4.218837499 seconds (0.176613742 seconds in GC)

--
Best regards, Dmitry Bogatov <KAction@gnu.org>,
Free Software supporter and netiquette guardian.
	git clone git://kaction.name/rc-files.git --depth 1
	GPG: 54B7F00D
Html mail and proprietary format attachments are forwarded to /dev/null.

[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]

             reply	other threads:[~2013-09-17 16:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-17 16:14 Dmitry Bogatov [this message]
2013-09-17 18:05 ` Interpreting statprof Andy Wingo
2013-09-17 18:05 ` Andy Wingo
2013-09-17 18:39   ` Dmitry Bogatov

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/guile/

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

  git send-email \
    --in-reply-to=87r4cn1l42.fsf@gnu.org \
    --to=kaction@gnu.org \
    --cc=guile-user@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.
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).