Sampling process 618 for 3 seconds with 1 millisecond of run time between samples Sampling completed, processing symbols... Analysis of sampling calculatorform (pid 618) every 1 millisecond Call graph: 2633 Thread_1767019 DispatchQueue_1: com.apple.main-thread (serial) 2633 start 2633 _start 2633 main 2633 QCoreApplication::exec() 2633 QEventLoop::exec(QFlags) 2633 QEventLoop::processEvents(QFlags) 2633 QEventDispatcherMac::processEvents(QFlags) 2633 -[NSApplication run] 2633 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] 2633 _DPSNextEvent 2633 BlockUntilNextEventMatchingListInMode 2633 ReceiveNextEventCommon 2633 RunCurrentEventLoopInMode 2633 CFRunLoopRunInMode 2633 CFRunLoopRunSpecific 2633 __CFRunLoopRun 2585 mach_msg 2585 mach_msg_trap 42 __CFRunLoopDoObservers 41 _handleWindowNeedsDisplay 39 -[NSWindow displayIfNeeded] 39 -[NSView displayIfNeeded] 35 -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] 30 -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] 30 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] 26 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] 22 -[NSView _drawRect:clip:] 22 -[QCocoaView drawRect:] 20 QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) 12 QWidgetPrivate::paintBackground(QPainter*, QRegion const&, int) const 12 qt_mac_fill_background(QPainter*, QRegion const&, QBrush const&) 8 CGContextFillRect 8 CGContextFillRects 8 ripc_DrawRects 7 ripc_Render 7 ripl_BltShape 7 ripd_Lock 7 CGSDeviceLock 7 _CGSLockWindow 7 _CGSSynchronizeWindowBackingStore 6 mach_msg 6 mach_msg_trap 1 mig_get_reply_port 1 CGContextDelegateGetInfo 4 QPainter::setClipRegion(QRegion const&, Qt::ClipOperation) 3 QPainterPrivate::updateState(QPainterState*) 3 QPainterPrivate::updateStateImpl(QPainterState*) 3 QCoreGraphicsPaintEngine::updateState(QPaintEngineState const&) 1 QCoreGraphicsPaintEngine::updateBrush(QBrush const&, QPointF const&) 1 QCoreGraphicsPaintEngine::updateClipPath(QPainterPath const&, Qt::ClipOperation) 1 QMatrix::QMatrix() 1 QCoreGraphicsPaintEngine::updatePen(QPen const&) 1 QPen::operator=(QPen const&) 1 QBrush::~QBrush() 1 QList::append(QPainterClipInfo const&) 1 QList::detach_helper_grow(int, int) 6 QWidgetPrivate::paintSiblingsRecursive(QPaintDevice*, QList const&, int, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) 5 QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*) 5 QCoreApplication::notifyInternal(QObject*, QEvent*) 5 QApplication::notify(QObject*, QEvent*) 5 QApplicationPrivate::notify_helper(QObject*, QEvent*) 5 QProgressBar::event(QEvent*) 5 QWidget::event(QEvent*) 5 QProgressBar::paintEvent(QPaintEvent*) 4 QMacStyle::drawControl(QStyle::ControlElement, QStyleOption const*, QPainter*, QWidget const*) const 4 QWindowsStyle::drawControl(QStyle::ControlElement, QStyleOption const*, QPainter*, QWidget const*) const 4 QCommonStyle::drawControl(QStyle::ControlElement, QStyleOption const*, QPainter*, QWidget const*) const 4 QMacStyle::drawControl(QStyle::ControlElement, QStyleOption const*, QPainter*, QWidget const*) const 1 HIThemeDrawTrack 1 _HIThemeDrawTrackInternal(HIThemeTrackDrawInfo const*, CGRect const*, ThemeEraseXUPP*, unsigned long, CGContext*, unsigned long) 1 DataEngine::DrawTrack(HIThemeTrackDrawInfo const*, CGRect const*, ThemeEraseXUPP*, unsigned long, CGContext*) 1 LayoutEngine::DrawLayout(TTheme*, void*, CGRect const&, unsigned short, long const*, unsigned long, unsigned long const*, CGContext*, short) 1 LayoutEngine::DrawLayoutWithClipComposited(TTheme*, void*, CGRect const&, unsigned short, long const*, unsigned long, short, unsigned long const*, unsigned long const*, float, CGContext*, short) 1 TilePixMapListCG 1 CGContextFillRect 1 CGContextFillRects 1 ripc_DrawRects 1 ripc_Render 1 ripl_BltShape 1 argb32_mark 1 argb32_mark_pixelshape 1 OSAtomicCompareAndSwap32 1 __compare_and_swap32 1 QMacCGContext::QMacCGContext(QPainter*) 1 QPaintEngine::syncState() 1 QCoreGraphicsPaintEngine::updateState(QPaintEngineState const&) 1 QCoreGraphicsPaintEnginePrivate::setStrokePen(QPen const&) 1 _CFRelease 1 CFAllocatorDeallocate 1 QMacStylePrivate::aquaSizeConstrain(QStyleOption const*, QWidget const*, QStyle::ContentsType, QSize, QSize*) const 1 QMacStyle::widgetSizePolicy(QWidget const*) 1 QPainter::begin(QPaintDevice*) 1 QCoreGraphicsPaintEngine::begin(QPaintDevice*) 1 QCoreGraphicsPaintEnginePrivate::setClip(QRegion const*) 1 qt_mac_clip_cg(CGContext*, QRegion const&, CGAffineTransform*) 1 HIShapeReplacePathInCGContext 1 CGContextReplacePathWithShapePath 1 CGSReleaseRegionEnumerator 1 _CFRelease 1 regionEnumeratorFinalize 1 mem_heap_free 1 szone_free 1 free 1 QPainter::QPainter(QPaintDevice*) 1 QPainter::begin(QPaintDevice*) 1 operator new(unsigned long) 1 malloc 1 malloc_zone_malloc 1 szone_malloc_should_clear 1 tiny_malloc_from_free_list 1 QPainter::~QPainter() 1 QPainter::end() 1 QCoreGraphicsPaintEngine::end() 1 CGContextSynchronize 1 ripc_Operation 1 CGSDeviceSynchronize 1 CGSBoundingShapeGetRegion 1 CGSNewRegion 1 CGTypeCreateInstanceWithAllocator 1 _CFRuntimeCreateInstance 1 malloc_zone_malloc 1 szone_malloc_should_clear 1 tiny_malloc_from_free_list 1 -[QCocoaView drawRect:] 1 QRegion::operator+=(QRect const&) 1 QRegion::QRegion(QRect const&, QRegion::RegionType) 1 operator new(unsigned long) 1 malloc 2 -[NSView lockFocus] 2 -[NSView lockFocusIfCanDraw] 1 +[NSGraphicsContext saveGraphicsState] 1 CGContextSaveGState 1 CGGStackSave 1 CGGStateCreateCopy 1 calloc 1 -[NSWindow _threadContext] 1 -[NSView canDraw] 1 -[NSView unlockFocus] 1 -[NSObject(NSObject) retain] 1 __CFDoExternRefOperation 1 CFBasicHashAddValue 1 ___CFBasicHashFindBucket1 1 +[NSObject(NSObject) alloc] 1 +[NSObject(NSObject) allocWithZone:] 1 _internal_class_createInstance 1 _internal_class_createInstanceFromZone 1 calloc 1 -[NSRectSet convertFromAncestor:toView:clipTo:] 1 NSIntersectionRect 1 -[NSView _drawRect:clip:] 1 -[NSThemeFrame _regionForOpaqueDescendants:forMove:] 1 objc_msgSend 1 objc_msgSend_stret 3 -[NSView lockFocus] 3 -[NSView lockFocusIfCanDraw] 2 -[NSView _focusFromView:withContext:] 2 -[NSView _gatherFocusStateInto:upTo:withContext:] 2 -[NSView _focusInto:withClip:] 1 CFArrayAppendValue 1 _CFArrayReplaceValues 1 objc_msgSend 1 class_getMethodImplementation 1 _cache_getImp 1 -[NSFocusState flush] 1 -[NSWindow _windowDeviceRound] 1 +[NSGraphicsContext setCurrentContext:] 1 -[NSRectSet initWithRegion:] 1 -[NSRegion getRects:count:] 1 CGSReleaseRegionEnumerator 1 CFRelease 1 -[NSWindow _subtractFromNeedsDisplayRegion:] 4 -[NSView _sendViewWillDrawInRect:clipRootView:suppressRecursion:] 2 -[_NSDisplayOperationStack enterViewWillDrawOperationForWindow:windowRegion:clipRootView:suppressViewWillDrawRecursion:] 2 -[_NSDisplayOperationStack enterDisplayOperationForWindow:windowRegion:] 1 -[NSCFArray addObject:] 1 -[NSCFArray insertObject:atIndex:] 1 _CFArrayReplaceValues 1 CFRetain 1 -[NSObject(NSObject) retain] 1 __CFDoExternRefOperation 1 CFBasicHashAddValue 1 ___CFBasicHashFindBucket1 1 -[_NSDisplayOperation initWithWindow:windowRegion:] 1 -[NSConcreteMapTable initWithKeyOptions:valueOptions:capacity:] 1 allocateInitialCapacity 1 allocateCollectableUnscannedStorage 1 NSAllocateCollectable 1 NSDefaultMallocZone 1 -[NSView _sendViewWillDrawInRect:clipRootView:suppressRecursion:] 1 objc_msgSend 1 _CFAutoreleasePoolPush 1 pthread_setspecific 1 _handleWindowNeedsDisplay 1 objc_msgSend 2 QEventDispatcherMacPrivate::activateTimer(__CFRunLoopTimer*, void*) 2 qt_sendSpontaneousEvent(QObject*, QEvent*) 2 QCoreApplication::notifyInternal(QObject*, QEvent*) 2 QApplication::notify(QObject*, QEvent*) 2 QApplicationPrivate::notify_helper(QObject*, QEvent*) 2 QObject::event(QEvent*) 2 QMacStylePrivate::timerEvent(QTimerEvent*) 2 QWidget::update() 2 QWidget::update(QRect const&) 2 QWidgetPrivate::repaint_sys(QRegion const&) 2 QWidgetPrivate::update_sys(QRegion const&) 2 QWidgetPrivate::macSetNeedsDisplay(QRegion) 2 -[NSView setNeedsDisplayInRect:] 1 -[NSView visibleRect] 1 +[NSGraphicsContext currentContext] 1 __NSAppKitGetThreadSpecificData 1 pthread_getspecific 1 -[NSWindow _postWindowNeedsDisplay] 1 CFRunLoopAddObserver 1 __CFRunLoopFindMode 1 CFSetGetValue 1 CFBasicHashFindBucket 1 ___CFBasicHashFindBucket1 1 __CFStringHash 2 mach_port_insert_member 2 mach_msg 2 mach_msg_trap 1 __CFRunLoopTimerRescheduleWithAllModes 1 mk_timer_arm 1 mach_port_extract_member 1 mach_msg 1 mach_msg_trap 2633 Thread_1767052 DispatchQueue_2: com.apple.libdispatch-manager (serial) 2633 start_wqthread 2633 _pthread_wqthread 2633 _dispatch_worker_thread2 2633 _dispatch_queue_invoke 2633 _dispatch_mgr_invoke 2633 kevent Total number in stack (recursive counted multiple, when >=5): Sort by top of stack, same collapsed (when >= 5): kevent 2633 mach_msg_trap 2594 Sample analysis of process 618 written to file /dev/stdout