Archive of RubyForge sup-talk mailing list
 help / color / mirror / Atom feed
* [sup-talk] Using DTrace to profile sup-sync
@ 2007-12-15 15:05 Jjgod Jiang
  2007-12-15 19:25 ` William Morgan
  2007-12-15 21:04 ` William Morgan
  0 siblings, 2 replies; 5+ messages in thread
From: Jjgod Jiang @ 2007-12-15 15:05 UTC (permalink / raw)


Hi,

When I was trying to build index for my GMail account (which has 28525
mails in inbox)
with sup-sync, I found the estimated finish time is too long (24
hours) to accept. So I
decided to use DTrace to do some profiling work on sup-sync, and here
is the result.

The top n method spent most of the time is:

___ OVERLAP TIMES: ___                                    ______ ELAPSED ______
CLASS                    METHOD                   COUNT    AVG(us)      SUM(us)

Net::IMAP::ResponseParse next_token              570993        282    161345198
Net::IMAP::ResponseParse lookahead               770871        283    218826568
Class                    _parse                   28612       8051    230376494
Class                    parse                    28902       9105    263159874
Net::IMAP::ResponseParse match                   485344        563    273536106
Redwood::IMAP            make_id                  28534       9985    284928748
Net::IMAP::ResponseParse msg_att                  28534      11423    325954315
Array                    each                     86883       3819    331861324
Net::IMAP::ResponseParse numeric_response         28538      15239    434895984
Net::IMAP::ResponseParse response_untagged        28551      17003    485460410
Net::IMAP::ResponseParse response                 28566      19149    547032919
Net::IMAP::ResponseParse parse                    28566      19233    549418654
Net::IMAP                get_response             28551      19922    568811230

I can send the complete result if needed. HTH.

BTW: it only took mutt half an hour to fetch all the mail headers.

- Jiang


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-12-19  4:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-12-15 15:05 [sup-talk] Using DTrace to profile sup-sync Jjgod Jiang
2007-12-15 19:25 ` William Morgan
2007-12-15 19:38   ` William Morgan
2007-12-15 21:04 ` William Morgan
2007-12-19  4:38   ` William Morgan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox