[Xquartz-dev] Fwd: 2.4.0_beta4 and beta5

Harald Hanche-Olsen hanche at math.ntnu.no
Tue Jul 28 17:28:50 PDT 2009


+ Jeremy Huddleston <jeremyhu at berkeley.edu>:

> That's a sample of the wrong process.  You need to sample
> /A/U/X11.app/Contents/MacOS/X11.bin

Oh. Here, then. Certainly more stuff here. I was typing away at the
dead xterm while taking the sample.

- Harald

Sampling process 79657 for 1 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling X11.bin (pid 79657) every 1 millisecond
Call graph:
    619 Thread_2507
      619 start
        619 main
          619 mach_msg_server
            619 mach_startup_server
              619 _Xstart_x11_server
                619 do_start_x11_server
                  619 server_main
                    619 X11ControllerMain
                      619 X11ApplicationMain
                        619 -[NSApplication run]
                          615 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:]
                            615 _DPSNextEvent
                              614 BlockUntilNextEventMatchingListInMode
                                614 ReceiveNextEventCommon
                                  611 RunCurrentEventLoopInMode
                                    611 CFRunLoopRunInMode
                                      610 CFRunLoopRunSpecific
                                        606 mach_msg
                                          606 mach_msg_trap
                                            606 mach_msg_trap
                                        3 __CFMachPortPerform
                                          3 PullEventsFromWindowServerOnConnection(unsigned int, unsigned char)
                                            2 CGEventCreateNextEvent
                                              2 CGSGetNextEventRecordInternal
                                                2 snarfEvents
                                                  1 CGSDispatchDatagramsFromStream
                                                    1 CGSDecodeEventRecord
                                                      1 CGEventCreateFromDataAndSource
                                                        1 malloc
                                                          1 malloc_zone_malloc
                                                            1 szone_malloc
                                                              1 large_and_huge_malloc
                                                                1 mmap
                                                                  1 mmap
                                                  1 _CGSGetPortStreamInline
                                                    1 mach_msg
                                                      1 mach_msg_trap
                                                        1 mach_msg_trap
                                            1 ConvertPlatformEventRecordAndPostWithOptions(__CGEvent*, _CGSEventRecord const*, short, unsigned char, unsigned char)
                                              1 ReleaseEvent
                                                1 __spin_lock
                                                  1 __spin_lock
                                        1 CFRunLoopRunSpecific
                                      1 memset
                                        1 memset
                                  3 AcquireEventFromQueue
                                    3 _NotifyEventLoopObservers
                                      3 HIApplication::EventObserver(unsigned long, OpaqueEventRef*, void*)
                                        3 HIApplication::HandleActivated(OpaqueEventRef*, unsigned char, OpaqueWindowPtr*)
                                          2 SetMenuBarObscured
                                            2 ShowBar(unsigned char, unsigned char)
                                              1 ResetMenuBarWindowFilter()
                                                1 +[CICGSFilter filterWithFilter:connectionID:]
                                                  1 -[CICGSFilter initWithFilter:connectionID:]
                                                    1 CGSNewCIFilter
                                                      1 _CGSNewCIFilter
                                                        1 mach_msg
                                                          1 mach_msg_trap
                                                            1 mach_msg_trap
                                              1 SetMenuBarLimits
                                                1 _CGSSetSystemStatusBarLimits
                                                  1 mach_msg
                                                    1 mach_msg_trap
                                                      1 mach_msg_trap
                                          1 EnableScreenUpdates
                                            1 CGSReenableUpdate
                                              1 CGSReenableUpdateForConnections
                                                1 _CGSReenableUpdateForConnections
                                                  1 mach_msg
                                                    1 mach_msg_trap
                                                      1 mach_msg_trap
                              1 SendEventToEventTarget
                                1 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*)
                                  1 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*)
                                    1 ToolboxEventDispatcherHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*)
                                      1 FindWindowAndPartFromMouseEvent
                                        1 FindWindow
                                          1 FindWindowOfClass
                                            1 FindWindowCommon(Point, OpaqueWindowPtr**, short*)
                                              1 FindPlatformWindow
                                                1 CGSFindWindowAndOwner
                                                  1 _CGSFindWindow
                                                    1 mach_msg
                                                      1 mach_msg_trap
                                                        1 mach_msg_trap
                          4 -[X11Application sendEvent:]
                            2 -[X11Application(Private) sendX11NSEvent:]
                              1 DarwinSendPointerEvents
                                1 write$UNIX2003
                                  1 write$UNIX2003
                              1 xp_find_window
                                1 CGSFindWindowAndOwner
                                  1 _CGSFindWindow
                                    1 mach_msg
                                      1 mach_msg_trap
                                        1 mach_msg_trap
                            2 CGSDeactivateCurrContext
                              2 _LSSetMetaApplicationInformationItem
                                1 FlattenedCFItem::Encode()
                                  1 FlattenedCFItem::Encode(void const*)
                                    1 FlattenedCFItem::Append(void const*, unsigned long)
                                      1 FlattenedCFItem::Resize(unsigned long)
                                        1 vm_allocate
                                          1 mach_msg
                                            1 mach_msg_trap
                                              1 mach_msg_trap
                                1 _LSDoSetMetaApplicationInformation
                                  1 mach_msg
                                    1 mach_msg_trap
                                      1 mach_msg_trap
    619 Thread_2603
      619 thread_start
        619 _pthread_start
          619 CAPThread::Entry(CAPThread*)
            619 HALRunLoop::OwnThread(void*)
              619 CFRunLoopRunInMode
                619 CFRunLoopRunSpecific
                  619 mach_msg
                    619 mach_msg_trap
                      619 mach_msg_trap
    619 Thread_2703
      619 thread_start
        619 _pthread_start
          619 server_thread
            619 dix_main
              619 Dispatch
                615 select$DARWIN_EXTSN
                  615 select$DARWIN_EXTSN
                4 ProcRenderDispatch
                  4 ProcRenderFillRectangles
                    4 CompositeRects
                      4 miCompositeRects
                        4 miColorRects
                          4 RootlessPolyFillRect
                            4 RootlessStartDrawing
                              4 xprStartDrawing
                                4 xp_lock_window
                                  3 CGSLockWindowRectBits
                                    3 _CGSLockWindow
                                      3 _CGSSynchronizeWindowBackingStore
                                        3 mach_msg
                                          3 mach_msg_trap
                                            3 mach_msg_trap
                                  1 xp_synchronize
                                    1 _xp_synchronize
                                      1 _xp_async_dequeue
                                        1 pthread_cond_wait$UNIX2003
                                          1 __semwait_signal
                                            1 __semwait_signal
    619 Thread_2803
      619 thread_start
        619 _pthread_start
          619 xpbproxy_x_thread
            619 xpbproxy_input_loop
              619 pthread_cond_wait$UNIX2003
                619 __semwait_signal
                  619 __semwait_signal
    619 Thread_2903
      619 thread_start
        619 _pthread_start
          619 glvmDoWork
            619 pthread_cond_wait$UNIX2003
              619 __semwait_signal
                619 __semwait_signal
    619 Thread_2a03
      619 thread_start
        619 _pthread_start
          619 DarwinProcessFDAdditionQueue_thread
            619 pthread_cond_wait$UNIX2003
              619 __semwait_signal
                619 __semwait_signal
    619 Thread_2b03
      619 thread_start
        619 _pthread_start
          618 select$DARWIN_EXTSN
            618 select$DARWIN_EXTSN
          1 __CFSocketManager
            1 __CFSocketManager
    619 Thread_2c03
      619 thread_start
        619 _pthread_start
          619 _xp_async_thread
            618 _xp_async_dequeue
              618 pthread_cond_wait$UNIX2003
                618 __semwait_signal
                  618 __semwait_signal
            1 _xp_frame_draw_cb
              1 CGSSetWindowTitle
                1 CGSSetWindowProperty
                  1 _CGSSetWindowProperty
                    1 mach_msg
                      1 mach_msg_trap
                        1 mach_msg_trap

Total number in stack (recursive counted multiple, when >=5):
        12       mach_msg
        12       mach_msg_trap
        7       _pthread_start
        7       thread_start
        5       __semwait_signal
        5       pthread_cond_wait$UNIX2003

Sort by top of stack, same collapsed (when >= 5):
        __semwait_signal        2476
        mach_msg_trap        1237
        select$DARWIN_EXTSN        1233
Sample analysis of process 79657 written to file /dev/stdout


More information about the Xquartz-dev mailing list