From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Bogatov Newsgroups: gmane.lisp.guile.user Subject: Interpreting statprof Date: Tue, 17 Sep 2013 20:14:21 +0400 Organization: Church of Emacs Message-ID: <87r4cn1l42.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1379434693 29670 80.91.229.3 (17 Sep 2013 16:18:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Sep 2013 16:18:13 +0000 (UTC) To: "guile-user\@gnu.org" Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Sep 17 18:18:14 2013 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VLxyg-0002vD-D4 for guile-user@m.gmane.org; Tue, 17 Sep 2013 18:18:14 +0200 Original-Received: from localhost ([::1]:42363 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLxyf-0004q1-VN for guile-user@m.gmane.org; Tue, 17 Sep 2013 12:18:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36877) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLxyN-0004jm-Lx for guile-user@gnu.org; Tue, 17 Sep 2013 12:18:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VLxyI-000089-Ge for guile-user@gnu.org; Tue, 17 Sep 2013 12:17:55 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46607) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VLxyI-00007x-CQ for guile-user@gnu.org; Tue, 17 Sep 2013 12:17:50 -0400 Original-Received: from [176.67.167.20] (port=35406 helo=localhost) by fencepost.gnu.org with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1VLxyG-0004pl-VQ for guile-user@gnu.org; Tue, 17 Sep 2013 12:17:50 -0400 User-agent: mu4e 0.9.9.5; emacs 24.3.1 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:10806 Archived-At: --=-=-= Content-Type: text/plain 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 # 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 # 0.00 4.22 0.00 statprof 0.00 4.22 0.00 save-module-excursion 0.00 4.22 0.00 # 0.00 4.22 0.00 # 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 , 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. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.21 (GNU/Linux) iQIcBAEBAgAGBQJSOH/jAAoJEHiL4BJUt/ANc2MQAJQ+lX7o1fDz78JCGNFyrlKd x9c8mq9EFSVfN8zEDN2n6911H1Kq9Y1IiyIyfzNQfCdfCkFnj9opVke9myf6esM3 Adawu/f14t9yU4sKd44YsU732Rcv34ZzJXa1KNxvN2RuQScUcg5Ieg9RN+2TmCMe LMneKOtpTfqev8NLv1LpYh8gFiMwGaM9mRP7R1yIaCi9BT+UPM1LSdGjJUhguS6n 2t547+10pqAsCP+AYYAbKsNtRiYXoVf5ke4fesPUG/wGMlo2D1sBSkAsJXNu9uZe HP2+UDHYQtu1B95Jrgco3cu5s/5LbiaCpByPdKSPFzuMBFvBmBTAStUqSMZeQcNP pgxIdF8KJjtAjnp4dGCzzESgg/0axSXowlkZadnJdOZELyVpi148MYguXi7ERqjf p6eXCggYibJjJI7T+TsJNcCt4QiW9zOCWTkqwV9zR8fJBocWy2Xkap5IIxda9XYn IqQaWC+mqnFVPE8sq5xOvpV1yFPi9GcJyveaSv+JXW8XsZMIFSsIRnloFQOWydUj YnRlSNkx8ur22XD6YmEBg7xxd/rkwf6xc+kAo+S8TKSQaj2lKFj68n9snv9Udwmu Vt79+IJi+U9nD82Fhfq7bdSbpJrO4SqNIqHgFKqR3K+gMtXm0vC4LPx1oiGo3Kwo 5yKZfpvUQUsKfSJ1osdL =LRQM -----END PGP SIGNATURE----- --=-=-=--