All pastes #732445 Raw Edit

Mine

public text v1 · immutable
·published 2007-10-10 23:59 UTC
rendered paste body
Analysis of sampling pid 12765 every 10.000000 milliseconds
Call graph:
    844 Thread_0f13
      844 start
        844 _start
          844 main
            844 NSApplicationMain
              844 -[NSApplication run]
                844 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
                  844 _DPSNextEvent
                    844 BlockUntilNextEventMatchingListInMode
                      844 ReceiveNextEventCommon
                        844 RunCurrentEventLoopInMode
                          844 CFRunLoopRunSpecific
                            844 __CFRunLoopRun
                              578 mach_msg
                                578 mach_msg_trap
                                  578 mach_msg_trap
                              250 __CFRunLoopDoTimer
                                250 __NSFireTimer
                                  249 -[Controller updateUI]
                                    248 -[NSArray makeObjectsPerformSelector:withObject:]
                                      248 -[Torrent update]
                                        247 tr_torrentStat
                                          247 tr_rwReaderLock
                                            247 pthread_cond_wait
                                              247 semaphore_wait_signal_trap
                                                247 semaphore_wait_signal_trap
                                        1 -[NSString stringByAppendingString:]
                                          1 _NSNewStringByAppendingStrings
                                            1 -[NSCFString cStringLength]
                                              1 -[NSString(NSStringOtherEncodings) cStringLength]
                                                1 -[NSString(NSStringOtherEncodings) getBytes:maxLength:usedLength:encoding:options:range:remainingRange:]
                                                  1 __CFStringEncodeByteStream
                                                    1 CFStringEncodingUnicodeToBytes
                                                      1 __CFGetConverter
                                                        1 __CFGetConverter
                                    1 -[Controller sortTorrents]
                                      1 -[Controller sortTorrentsIgnoreSelected]
                                        1 -[NSMutableArray(NSKeyValueSorting) sortUsingDescriptors:]
                                          1 objc_msgSend_rtp
                                            1 objc_msgSend_rtp
                                  1 NSPopAutoreleasePool
                                    1 _CFRelease
                                      1 __CFArrayDeallocate
                                        1 CFRelease
                                          1 CFRelease
                              16 __CFRunLoopDoObservers
                                16 _handleWindowNeedsDisplay
                                  14 -[NSWindow displayIfNeeded]
                                    14 -[NSView displayIfNeeded]
                                      14 -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:]
                                        11 -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
                                          11 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
                                            10 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
                                              10 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
                                                10 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
                                                  10 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
                                                    9 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:]
                                                      9 -[NSView _drawRect:clip:]
                                                        9 -[TorrentTableView drawRect:]
                                                          9 -[NSTableView drawRect:]
                                                            8 -[NSTableView drawRowIndexes:clipRect:]
                                                              8 -[NSTableView drawRow:clipRect:]
                                                                8 -[NSTableView _drawContentsAtRow:column:clipRect:]
                                                                  8 -[TorrentCell drawWithFrame:inView:]
                                                                    8 -[TorrentCell buildSimpleBar:point:]
                                                                      8 -[CTGradient fillRect:angle:]
                                                                        6 CGContextDrawShading
                                                                          6 drawAxialShading
                                                                            3 FunctionSamplesCreate
                                                                              2 CGFunctionEvaluate
                                                                                1 CGFunctionEvaluate
                                                                                1 linearEvaluation
                                                                                  1 linearEvaluation
                                                                              1 FunctionSamplesCreate
                                                                            2 CGContextDrawImage
                                                                              2 CGContextDelegateDrawImage
                                                                                2 ripc_DrawImage
                                                                                  2 ripc_RenderImage
                                                                                    2 ripl_BltImage
                                                                                      2 ripd_Mark
                                                                                        2 ARGB32_image
                                                                                          2 ARGB32_image_mark
                                                                                            1 ARGB32_image_RGBA32
                                                                                              1 ARGB32_image_RGBA32
                                                                                            1 ARGB32_image_mark
                                                                            1 CGFunctionEvaluate
                                                                              1 CGFunctionEvaluate
                                                                        1 CGContextClipToRect
                                                                          1 CGGStateClipToRect
                                                                            1 CGClipStackAddRect
                                                                              1 CGClipStackAddRect
                                                                        1 _CFRelease
                                                                          1 shadingFinalize
                                                                            1 deallocAxialData
                                                                              1 FunctionSamplesRelease
                                                                                1 szone_free
                                                                                  1 vm_deallocate
                                                                                    1 mach_msg
                                                                                      1 mach_msg_trap
                                                                                        1 mach_msg_trap
                                                            1 -[NSTableView drawBackgroundInClipRect:]
                                                              1 -[NSTableView _drawAlternatingRowBackgroundColors:inRect:]
                                                                1 NSRectFillList
                                                                  1 CGContextFillRects
                                                                    1 __CGContextDrawRects
                                                                      1 ripc_DrawRects
                                                                        1 ripc_Render
                                                                          1 ripl_BltShape
                                                                            1 ripd_Mark
                                                                              1 ARGB32_mark
                                                                                1 ARGB32_mark_constantshape
                                                                                  1 CGBlt_fillBytes
                                                                                    1 CGSFillDRAM8by1
                                                                                      1 vecCGSFill8by1
                                                                                        1 vecCGSFill8by1
                                                    1 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
                                                      1 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:]
                                                        1 -[NSView _drawRect:clip:]
                                                          1 -[NSControl drawRect:]
                                                            1 -[NSTextFieldCell drawWithFrame:inView:]
                                                              1 -[NSTextFieldCell drawInteriorWithFrame:inView:]
                                                                1 _NXDrawTextCell
                                                                  1 _NSStringDrawingCore
                                                                    1 +[NSStringDrawingTextStorage _fastDrawString:attributes:length:inRect:graphicsContext:baselineRendering:usesFontLeading:usesScreenFont:typesetterBehavior:paragraphStyle:lineBreakMode:boundingRect:padding:scrollable:]
                                                                      1 -[NSFont descender]
                                                                        1 dyld_stub_CTFontGetDescent
                                                                          1 dyld_stub_CTFontGetDescent
                                            1 -[NSView _drawRect:clip:]
                                              1 -[NSView(NSInternal) _getDirtyRects:clippedToRect:count:boundingBox:]
                                                1 -[NSRegion intersectWithRect:]
                                                  1 NSIsEmptyRect
                                                    1 NSIsEmptyRect
                                        2 -[NSView(NSInternal) _clearDirtyRectsForTreeInRect:]
                                          2 -[NSView(NSInternal) _clearDirtyRectsForTreeInRect:]
                                        1 -[NSWindow flushWindow]
                                          1 ripc_Context
                                            1 CGSDeviceSynchronize
                                              1 _CGSFlushWindowRegion
                                                1 _CGSFlushRegionInline
                                                  1 mach_msg
                                                    1 mach_msg_trap
                                                      1 mach_msg_trap
                                  2 NSPopAutoreleasePool
                                    2 objc_msgSend_rtp
                                      2 objc_msgSend_rtp
    844 Thread_1003
      844 _pthread_body
        844 __ape_agent
          844 mach_msg
            844 mach_msg_trap
              844 mach_msg_trap
    844 Thread_1103
      844 _pthread_body
        844 ah_serv_loop
          844 mach_msg
            844 mach_msg_trap
              844 mach_msg_trap
    844 Thread_1203
      844 _pthread_body
        844 ThreadFunc
          844 resolveFunc
            844 pthread_cond_wait
              844 semaphore_wait_signal_trap
                844 semaphore_wait_signal_trap
    844 Thread_1303
      844 _pthread_body
        844 ThreadFunc
          844 SharedLoop
            614 usleep
              614 nanosleep
                614 mach_wait_until
                  614 mach_wait_until
            220 tr_chokingPulse
              220 tr_rwWriterLock
                220 pthread_cond_wait
                  220 semaphore_wait_signal_trap
                    220 semaphore_wait_signal_trap
            7 pthread_mutex_lock
              7 pthread_mutex_lock
            1 tr_natpmpPulse
              1 tr_netRecvFrom
                1 recvfrom
                  1 recvfrom
            1 tr_netAccept
              1 tr_fdSocketAccept
                1 dyld_stub_pthread_mutex_unlock
                  1 dyld_stub_pthread_mutex_unlock
            1 tr_peerInit
              1 tr_malloc0
                1 malloc
                  1 szone_malloc
                    1 large_and_huge_malloc
                      1 vm_allocate
                        1 mach_msg
                          1 mach_msg_trap
                            1 mach_msg_trap
    844 Thread_1403
      844 _pthread_body
        844 CAPThread::Entry(CAPThread*)
          844 HALRunLoop::OwnThread(void*)
            844 CFRunLoopRunSpecific
              844 __CFRunLoopRun
                844 mach_msg
                  844 mach_msg_trap
                    844 mach_msg_trap
    844 Thread_1503
      844 _pthread_body
        844 _backgroundActivity
          844 accept
            844 accept
    844 Thread_1603
      844 _pthread_body
        844 forkThreadForFunction
          844 -[UKKQueue watcherThread:]
            844 kevent
              844 kevent
    844 Thread_1703
      844 _pthread_body
        844 ThreadFunc
          844 torrentThreadLoop
            844 usleep
              844 nanosleep
                844 mach_wait_until
                  844 mach_wait_until
    844 Thread_1803
      844 _pthread_body
        844 ThreadFunc
          844 torrentThreadLoop
            844 usleep
              844 nanosleep
                844 mach_wait_until
                  844 mach_wait_until
    844 Thread_1903
      844 _pthread_body
        844 ThreadFunc
          844 torrentThreadLoop
            691 tr_peerPulse
              346 tr_peerRead
                335 parseMessage
                  301 readOrWritePiece
                    293 write
                      293 write
                    7 tr_fdFileOpen
                      4 tr_fdFileOpen
                      1 TrCloseFile
                        1 close
                          1 close
                      1 pthread_cond_signal
                        1 dyld_stub__spin_unlock
                          1 dyld_stub__spin_unlock
                      1 strcmp
                        1 strcmp
                    1 tr_fdFileRelease
                      1 tr_fdFileRelease
                  31 tr_ioHash
                    31 tr_ioRecalculateHash
                      25 SHA1
                        25 SHA1_Update
                          25 sha1_block_data_order
                            25 sha1_block_data_order
                      6 readOrWritePiece
                        5 read
                          5 read
                        1 tr_fdFileRelease
                          1 tr_fdFileRelease
                  2 parseMessage
                  1 tr_cpBlockIsComplete
                    1 tr_cpBlockIsComplete
                10 tr_netRecvFrom
                  9 recvfrom
                    9 recvfrom
                  1 tr_netRecvFrom
                1 __memcpy
                  1 __memcpy
              198 tr_cpMissingBlocksForPiece
                198 tr_cpMissingBlocksForPiece
              117 tr_peerPulse
              13 readOrWritePiece
                12 read
                  12 read
                1 tr_fdFileRelease
                  1 tr_fdFileRelease
              7 qsort
                4 qsort
                  4 qsort
                    2 qsort
                      2 qsort
                        1 qsort
                        1 qsort
                          1 comparePieces
                            1 comparePieces
                    1 comparePieces
                      1 comparePieces
                    1 qsort
                2 qsort
                1 comparePieces
                  1 comparePieces
              3 malloc
                3 szone_malloc
                  3 large_and_huge_malloc
                    3 vm_allocate
                      3 mach_msg
                        3 mach_msg_trap
                          3 mach_msg_trap
              3 szone_free
                3 vm_deallocate
                  3 mach_msg
                    3 mach_msg_trap
                      3 mach_msg_trap
              1 dyld_stub_free
                1 dyld_stub_free
              1 sendRequest
                1 __peer_dbg
                  1 snprintf$LDBL128
                    1 __vfprintf$LDBL128
                      1 __sfvwrite
                        1 __sfvwrite
              1 tr_cpPieceIsComplete
                1 tr_cpPieceIsComplete
              1 tr_netSend
                1 sendto
                  1 sendto
            138 usleep
              138 nanosleep
                138 mach_wait_until
                  138 mach_wait_until
            15 pthread_mutex_unlock
              15 semaphore_signal_trap
                15 semaphore_signal_trap
    844 Thread_1a03
      844 _pthread_body
        844 ThreadFunc
          844 torrentThreadLoop
            659 usleep
              659 nanosleep
                659 mach_wait_until
                  659 mach_wait_until
            185 recheckCpState
              182 tr_rwWriterLock
                182 pthread_cond_wait
                  182 semaphore_wait_signal_trap
                    182 semaphore_wait_signal_trap
              3 recheckCpState
    844 Thread_1b03
      844 _pthread_body
        844 ThreadFunc
          844 torrentThreadLoop
            659 usleep
              659 nanosleep
                659 mach_wait_until
                  659 mach_wait_until
            185 recheckCpState
              184 tr_rwWriterLock
                184 pthread_cond_wait
                  184 semaphore_wait_signal_trap
                    184 semaphore_wait_signal_trap
              1 recheckCpState
    844 Thread_1c03
      844 _pthread_body
        844 ThreadFunc
          844 torrentThreadLoop
            660 usleep
              660 nanosleep
                660 mach_wait_until
                  660 mach_wait_until
            184 recheckCpState
              184 tr_rwWriterLock
                184 pthread_cond_wait
                  184 semaphore_wait_signal_trap
                    184 semaphore_wait_signal_trap
    844 Thread_1d03
      844 _pthread_body
        844 ThreadFunc
          844 torrentThreadLoop
            660 usleep
              660 nanosleep
                660 mach_wait_until
                  660 mach_wait_until
            184 recheckCpState
              184 tr_rwWriterLock
                184 pthread_cond_wait
                  184 semaphore_wait_signal_trap
                    184 semaphore_wait_signal_trap
    844 Thread_1e03
      844 _pthread_body
        844 ThreadFunc
          844 torrentThreadLoop
            661 usleep
              661 nanosleep
                661 mach_wait_until
                  661 mach_wait_until
            183 recheckCpState
              183 tr_rwWriterLock
                183 pthread_cond_wait
                  182 semaphore_wait_signal_trap
                    182 semaphore_wait_signal_trap
                  1 restore_sem_to_pool
                    1 restore_sem_to_pool
    844 Thread_1f03
      844 _pthread_body
        844 ThreadFunc
          844 torrentThreadLoop
            661 usleep
              661 nanosleep
                661 mach_wait_until
                  661 mach_wait_until
            183 recheckCpState
              182 tr_rwWriterLock
                182 pthread_cond_wait
                  182 semaphore_wait_signal_trap
                    182 semaphore_wait_signal_trap
              1 recheckCpState
    844 Thread_2003
      844 _pthread_body
        844 ThreadFunc
          844 torrentThreadLoop
            661 usleep
              661 nanosleep
                661 mach_wait_until
                  661 mach_wait_until
            183 recheckCpState
              182 tr_rwWriterLock
                182 pthread_cond_wait
                  182 semaphore_wait_signal_trap
                    182 semaphore_wait_signal_trap
              1 recheckCpState
    844 Thread_2103
      844 _pthread_body
        844 ThreadFunc
          844 torrentThreadLoop
            662 usleep
              662 nanosleep
                662 mach_wait_until
                  662 mach_wait_until
            182 recheckCpState
              182 tr_rwWriterLock
                182 pthread_cond_wait
                  182 semaphore_wait_signal_trap
                    182 semaphore_wait_signal_trap
    844 Thread_2203
      844 _pthread_body
        844 forkThreadForFunction
          844 +[NSURLConnection(NSURLConnectionInternal) _resourceLoadLoop:]
            844 CFRunLoopRunSpecific
              844 __CFRunLoopRun
                844 mach_msg
                  844 mach_msg_trap
                    844 mach_msg_trap
    844 Thread_2303
      844 _pthread_body
        844 __CFSocketManager
          844 select
            844 select
    844 Thread_2403
      844 _pthread_body
        844 forkThreadForFunction
          844 +[NSURLCache _diskCacheSyncLoop:]
            844 CFRunLoopRunSpecific
              844 __CFRunLoopRun
                844 mach_msg
                  844 mach_msg_trap
                    844 mach_msg_trap
    844 Thread_2503
      844 _pthread_body
        844 forkThreadForFunction
          844 -[NSUIHeartBeat _heartBeatThread:]
            844 -[NSConditionLock lockWhenCondition:]
              844 pthread_cond_wait
                844 semaphore_wait_signal_trap
                  844 semaphore_wait_signal_trap

Total number in stack (recursive counted multiple, when >=5):
        22       _pthread_body
        13       ThreadFunc
        12       mach_wait_until
        12       nanosleep
        12       pthread_cond_wait
        12       semaphore_wait_signal_trap
        12       usleep
        11       mach_msg
        11       mach_msg_trap
        11       torrentThreadLoop
        9       tr_rwWriterLock
        8       recheckCpState
        6       -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:]
        6       qsort

Sort by top of stack, same collapsed (when >= 5):
        mach_wait_until        7723
        mach_msg_trap        4807
        semaphore_wait_signal_trap        3617
        accept        844
        kevent        844
        select        844
        write        293
        tr_cpMissingBlocksForPiece        198
        tr_peerPulse        117
        sha1_block_data_order        25
        read        17
        semaphore_signal_trap        15
        recvfrom        10
        pthread_mutex_lock        7
        recheckCpState        6