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