From: sickfaichezi
Subject: Profiling and Timing
Date:
Message-ID: <1134005047.824092.25250@f14g2000cwb.googlegroups.com>
Can someone tell me whats wrong with this?
This function took 2 minutes to run, but the profiling only reports
that .3 seconds were used in running the function.
CL-USER> (time (send-mails))
; Compiling LAMBDA NIL:
; Compiling Top-Level Form:
; Evaluation took:
; 125.44 seconds of real time
; 0.31 seconds of user run time
; 0.02 seconds of system run time
; 41,536,836,807 CPU cycles
; 0 page faults and
; 931,792 bytes consed.
;
NIL
CL-USER> (profile:report-time)
Consed | Calls | Secs | Sec/Call | Bytes/C. | Name:
-----------------------------------------------------------------------
198,424 | 4 | .160 | 0.03999 | 49,606 |
ACL-COMPAT.SOCKET:DOTTED-TO-IPADDR
668,976 | 4 | .140 | 0.03499 | 167,244 |
COM.GRAGLOBAL.EMAILSURVEY::CREATE-MESSAGE
28,616 | 4 | .020 | 0.00499 | 7,154 |
COM.GRAGLOBAL.EMAILSURVEY::SEND-MESSAGE
448 | 4 | .010 | 0.00249 | 112 |
ACL-COMPAT.SOCKET:LOOKUP-HOSTNAME
9,576 | 1 | .000 | 0.00000 | 9,576 | SEND-MAILS
7,112 | 4 | .000 | 0.00000 | 1,778 |
COM.GRAGLOBAL.EMAILSURVEY::CREATE-HEADER
232 | 1 | .000 | 0.00000 | 232 |
COM.GRAGLOBAL.EMAILSURVEY::GET-UNIQUE-CONTACTS
352 | 4 | .000 | 0.00000 | 88 |
COM.GRAGLOBAL.EMAILSURVEY::GENERATE-SECURE-CODE
736 | 4 | .000 | 0.00000 | 184 |
COM.GRAGLOBAL.EMAILSURVEY::RECORD-CODE
256 | 4 | .000 | 0.00000 | 64 |
COM.GRAGLOBAL.EMAILSURVEY::DESTINATION
4,416 | 4 | .000 | 0.00000 | 1,104 |
ACL-COMPAT.SOCKET:MAKE-SOCKET
11,072 | 4 | .000 | 0.00000 | 2,768 |
ACL-COMPAT.SOCKET:IPADDR-TO-DOTTED
160 | 4 | .000 | 0.00000 | 40 |
ACL-COMPAT.SOCKET:LOCAL-HOST
1,408 | 4 | .000 | 0.00000 | 352 |
ACL-COMPAT.SOCKET::STRING-TOKENS
0 | 4 | .000 | 0.00000 | 0 |
ACL-COMPAT.SOCKET::GET-FD
-------------------------------------------------------------------
931,784 | 54 | .330 | | | Total
What happened to the rest?