Analysis of sampling python (pid 1835) every 1 millisecond Call graph: 8725 Thread_29112 DispatchQueue_1: com.apple.main-thread (serial) 8725 start 8725 Py_Main 8725 PyRun_SimpleFileExFlags 8725 PyRun_FileExFlags 8725 PyEval_EvalCode 8725 PyEval_EvalCodeEx 8725 PyEval_EvalFrameEx 8725 PyEval_EvalCodeEx 8725 PyEval_EvalFrameEx 8725 PyObject_Call 8725 function_call 8725 PyEval_EvalCodeEx 8725 PyEval_EvalFrameEx 8725 PyObject_Call 8725 type_call 8725 slot_tp_init 8725 PyObject_Call 8725 instancemethod_call 8725 PyObject_Call 8725 function_call 8725 PyEval_EvalCodeEx 8725 PyEval_EvalFrameEx 8725 PyObject_Call 8725 wrapperdescr_call 8725 PyEval_CallObjectWithKeywords 8725 PyObject_Call 8725 wrap_init 8725 FigureManager_init 8725 -[NSWindow makeKeyAndOrderFront:] 8725 -[NSWindow orderWindow:relativeTo:] 8725 -[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] 8725 -[NSView displayIfNeeded] 8725 -[NSView _displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] 8725 -[NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] 8725 -[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] 8725 -[NSView _recursiveDisplayAllDirtyWithLockFocus:visRect:] 8725 -[NSView _drawRect:clip:] 8725 -[NSThemeFrame drawRect:] 8725 -[NSFrameView drawRect:] 8725 -[NSThemeFrame drawFrame:] 8725 -[NSThemeFrame _drawTitleBar:] 8725 -[NSTitledFrame _drawTitleStringIn:withColor:] 8725 -[NSThemeFrame _titlebarTitleRect] 8725 -[NSWindow _customTitleFrame] 8725 -[NSThemeFrame _defaultTitlebarTitleRect] 8725 -[NSTitledFrame _titleCellSize] 8725 -[NSCell cellSize] 8725 -[NSTextFieldCell cellSizeForBounds:] 8725 -[NSCell cellSizeForBounds:] 8725 _NSGetTextCellBoundingRect 8725 -[NSString(NSExtendedStringDrawing) boundingRectWithSize:options:attributes:] 8725 +[NSStringDrawingTextStorage _fastDrawString:attributes:length:inRect:graphicsContext:baselineRendering:usesFontLeading:usesScreenFont:typesetterBehavior:paragraphStyle:lineBreakMode:boundingRect:padding:scrollable:] 8725 -[NSFont _latin1MappingTable:] 8725 -[__NSFontTypefaceInfo _latin1MappingTableWithPlatformFont:hasKernPair:] 8725 CTFontGetGlyphsForCharacters 8725 TBaseFont::GetGlyphsForCharacters(unsigned short const*, unsigned short*, long) const 8725 TcmapTable::TcmapTable(TBaseFont const&) 8725 TBaseFont::CopyTable(unsigned int) const 8725 TBaseFont::CopyNativeFont() const 8725 TCGFontCache::CopyFont(__CFURL const*) const 8725 TCGFont::TCGFont(__CFURL const*, bool) 8725 CGFontCreateFontsWithURL 8725 CGFontCreateFontsWithPath 8725 ats_font_create_private_data_with_path 8725 ats_font_ref_create_with_path 8725 ATSFontActivateFromFileReference 8725 _eATSFontActivateFromFileReference 8725 SendActivateFontsMessage 8725 XTRegisterFont 8725 XTRegisterFonts 8725 TLocalFontRegistry::RegisterFonts(__CFArray const*, __CFDictionary const*, unsigned int, unsigned int, __CFArray const**) const 8725 TLocalFontRegistryImp::RegisterFonts(__CFArray const*, __CFDictionary const*, unsigned int, unsigned int, __CFArray const**) const 8725 TLocalFontRegistryImp::RegisterFont(__CFURL const*, __CFDictionary const*, unsigned int, unsigned int) const 8725 CreateFontsFromURL(__CFURL const*) 8725 CGFontCreateFontsWithURL 8725 CGFontCreateFontsWithPath 8725 ats_font_create_private_data_with_path 8725 ats_font_ref_create_with_path 8725 ATSFontActivateFromFileReference 8725 _eATSFontActivateFromFileReference 8725 SendActivateFontsMessage 8725 TSReaderToWriter 8725 TSWaitOnCondition 8725 _pthread_cond_wait 8725 __semwait_signal 8725 Thread_29122 DispatchQueue_2: com.apple.libdispatch-manager (serial) 8725 start_wqthread 8725 _pthread_wqthread 8725 _dispatch_worker_thread2 8725 _dispatch_queue_invoke 8725 _dispatch_mgr_invoke 8725 kevent Total number in stack (recursive counted multiple, when >=5): 6 PyObject_Call Sort by top of stack, same collapsed (when >= 5): __semwait_signal 8725 kevent 8725