View Single Post
here is my activity... the cpu goes up to 60% while the colored wheel is spinning. this happens about 30% of the time when I try to click any project (basically to move around the outliner)

Sampling process 347 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling OmniFocus (pid 347) every 1 millisecond
Call graph:
2023 Thread_6879 DispatchQueue_1: com.apple.main-thread (serial)
2023 start
2023 _start
2023 NSApplicationMain
2023 -[OAApplication run]
2023 -[NSApplication run]
2023 -[OAApplication sendEvent:]
2023 -[NSApplication sendEvent:]
2023 -[NSWindow sendEvent:]
2023 -[OOOutlineView mouseDown:]
2023 -[OOOutlineView mouseMultiSelectFromRow:withEvent:]
2023 -[OOOutlineView(Selection) selectRow:withEvent:]
2023 -[OOOutlineView(Selection) selectRow:extendSelection:]
2023 -[NSKeyValueFastMutableSet setSet:]
2023 -[ProjectSidebarOutlineController setSelectedNodes:]
2023 -[OOTreeController(Selection) setSelectedNodes:]
2023 OFSetMutableSet
2023 -[NSObject(NSKeyValueObserverNotification) didChangeValueForKey:withSetMutation:usingObjects:]
2023 NSKeyValueDidChange
2023 NSKeyValueNotifyObserver
2023 -[NSKeyValueNotifyingMutableSet unionSet:]
2023 -[NSKeyValueSlowMutableSet unionSet:]
2023 -[OOOutlineView(Selection) setSelectedNodes:]
2023 -[OOOutlineView(SelectionPrivate) _setSelectedNodes:]
2023 -[NSObject(NSKeyValueObserverNotification) didChangeValueForKey:withSetMutation:usingObjects:]
2023 NSKeyValueDidChange
2023 NSKeyValueNotifyObserver
2023 -[NSObjectParameterBinder _observeValueForKeyPath:ofObject:context:]
2023 -[NSObjectParameterBinder _updateObject:observedController:observedKeyPath:c ontext:]
2023 -[NSObject(NSKeyValueCoding) setValue:forKey:]
2023 -[SidebarOutlineController setTopSelectedNodes:]
2023 -[OOOutlineRow children]
2023 -[OOOutlineRow(Private) _processChildrenChanges]
2023 -[OOOutlineRow(Private) _updateChildren]
2023 -[OOOutlineRow wasAddedToOutlineView:]
2023 -[OOOutlineRow updateDataInOutlineView:]
2023 -[OOOutlineRow children]
2023 -[OOOutlineRow(Private) _processChildrenChanges]
2023 -[OOOutlineRow(Private) _updateChildren]
2023 -[OOOutlineRow wasAddedToOutlineView:]
2023 -[OOOutlineRow updateDataInOutlineView:]
2023 -[OOOutlineRow children]
2023 -[OOOutlineRow(Private) _processChildrenChanges]
2023 -[OOOutlineRow(Private) _updateChildren]
2023 -[OOOutlineRow(Private) _updateInOutlineView:]
2023 -[OOLiveTextFieldCell setRepresentedObject:baseStyle:row:column:]
2023 -[OOLiveTextFieldCell(PrivateAPI) _setupLocalTextStorageForObject:row:column:baseSty le:]
2023 OFMCreateTextStorageForXMLElement
2023 -[OSStyledTextStorage initFromXML:baseStyle:attachments:attachmentContex t:discardStyles:]
2023 -[OSStyledTextStorage(Private) _newInitFromXML:attachments:attachmentContext:disc ardStyles:]
2020 -[OOTextStorage readAndAppendAttachmentFromXMLCursor:currentAttrib utes:attachments:context:]
2020 +[OSTextAttachment readAndAppendAttachmentToTextStorage:fromXMLCursor :currentAttributes:attachments:context:]
2005 +[OSTextAttachment _readAttachmentFromXMLCursor:currentAttributes:att achments:context:]
1986 -[OFMNamedObjectUsedAttachments fileWrapperForIdentifier:]
1840 -[OFMAttachment readUnzipEntriesIntoFileWrapper:]
1826 _readUnzipEntries
1822 -[OFMAttachment findUnzipArchiveWithCache:error:]
1821 +[XMLTransactionGraph unzipArchiveForTransactionURL:error:]
1813 -[XMLUnzipArchive initWithPath:error:]
406 -[XMLUnzipEntry initWithName:fileType:date:positionInFile:fileNumb er:compressionMethod:compressedSize:uncompressedSi ze:crc:]
404 -[NSObject(NSObject) copy]
397 -[NSDate copyWithZone:]
396 +[__NSCFDate __new:]
396 __CFAllocateObject
396 _internal_class_createInstance
396 _internal_class_createInstanceFromZone
396 calloc
395 malloc_zone_calloc
395 szone_malloc_should_clear
393 tiny_malloc_from_free_list
2 szone_malloc_should_clear
1 calloc
1 objc_msgSend
4 -[NSCFString copyWithZone:]
4 CFStringCreateCopy
2 CFStringCreateCopy
2 __compare_and_swap32
1 -[NSObject(NSObject) copy]
1 CFMakeCollectable
1 objc_msgSend_fpret
2 -[XMLUnzipEntry initWithName:fileType:date:positionInFile:fileNumb er:compressionMethod:compressedSize:uncompressedSi ze:crc:]
402 -[__NSCFCalendar dateFromComponents:]
363 +[NSDate dateWithTimeIntervalSinceReferenceDate:]
360 +[__NSCFDate __new:]
360 __CFAllocateObject
360 _internal_class_createInstance
360 _internal_class_createInstanceFromZone
359 calloc
358 malloc_zone_calloc
357 szone_malloc_should_clear
357 tiny_malloc_from_free_list
1 malloc_zone_calloc
1 calloc
1 object_cxxConstructFromClass
1 _class_getSuperclass
3 +[NSObject(NSObject) alloc]
2 objc_msgSend
1 +[NSDate allocWithZone:]
32 _CFCalendarComposeAbsoluteTimeV
30 icu::Calendar::getTimeInMillis(UErrorCode&) const
30 icu::Calendar::updateTime(UErrorCode&)
29 icu::Calendar::computeTime(UErrorCode&)
16 icu::TimeZone::getOffset(double, signed char, int&, int&, UErrorCode&) const
7 icu::GregorianCalendar::GregorianCalendar(icu::Gre gorianCalendar const&)
4 icu::GregorianCalendar::GregorianCalendar(icu::Gre gorianCalendar const&)
2 fmod$fenv_access_off
1 fmod$fenv_access_off
1 fmodl$fenv_access_off
1 icu::GregorianCalendar::GregorianCalendar(icu::Gre gorianCalendar const&)
5 icu::SimpleTimeZone::getOffset(unsigned char, int, int, int, unsigned char, int, int, UErrorCode&) const
3 icu::SimpleTimeZone::getOffset(unsigned char, int, int, int, unsigned char, int, int, int, UErrorCode&) const
2 icu::SimpleTimeZone::getOffset(unsigned char, int, int, int, unsigned char, int, int, int, UErrorCode&) const
1 icu::SimpleTimeZone::compareToRule(signed char, signed char, signed char, signed char, signed char, int, int, icu::SimpleTimeZone::EMode, signed char, signed char, signed char, int)
1 icu::SimpleTimeZone::getOffset(unsigned char, int, int, int, unsigned char, int, int, UErrorCode&) const
1 icu::SimpleTimeZone::setEndRule(int, int, int, int, icu::SimpleTimeZone::TimeMode, signed char, UErrorCode&)
3 icu::TimeZone::getOffset(double, signed char, int&, int&, UErrorCode&) const
1 floor$fenv_access_off
11 icu::Calendar::computeJulianDay()
7 icu::GregorianCalendar::handleComputeJulianDay(UCa lendarDateFields)
7 icu::Calendar::handleComputeJulianDay(UCalendarDat eFields)
5 icu::GregorianCalendar::handleGetExtendedYear()
5 icu::Calendar::resolveFields(int const (*) [12][8])
2 icu::GregorianCalendar::handleComputeMonthStart(in t, int, signed char) const
2 icu::GregorianCalendar::GregorianCalendar(icu::Gre gorianCalendar const&)
4 icu::Calendar::resolveFields(int const (*) [12][8])
2 icu::OlsonTimeZone::getStaticClassID()
1 icu::Calendar::updateTime(UErrorCode&)
1 _CFCalendarComposeAbsoluteTimeV
1 __CFCalendarGetICUFieldCodeFromChar
2 -[NSObject(NSObject) autorelease]
2 _CFAutoreleasePoolAddObject
1 _CFAutoreleasePoolAddObject
1 objc_collectingEnabled
2 dyld_stub_object_getIndexedIvars
1 -[NSDateComponents quarter]
1 object_getIndexedIvars
1 _class_getInstanceSize
1 objc_msgSend
1 ucal_set
389 +[NSObject(NSObject) alloc]
387 +[NSObject(NSObject) allocWithZone:]
386 _internal_class_createInstance
386 _internal_class_createInstanceFromZone
384 calloc
383 malloc_zone_calloc
382 szone_malloc_should_clear
381 tiny_malloc_from_free_list
1 __bzero
1 malloc_zone_calloc
1 calloc
2 object_cxxConstructFromClass
1 _class_hasCxxStructorsNoSuper
1 object_cxxConstructFromClass
1 object_cxxConstructFromClass
1 object_cxxConstructFromClass
1 class_createInstance
2 __CFAllocateObject2
2 _internal_class_createInstance
2 _internal_class_createInstanceFromZone
1 _class_getInstanceSize
1 calloc
1 malloc_zone_calloc
1 szone_malloc_should_clear
143 unzGoToNextFile
142 unzlocal_GetCurrentFileInfoInternal
75 unzlocal_getLong
72 unzlocal_getByte
65 fread
23 flockfile
10 pthread_mutex_lock
8 pthread_mutex_lock
2 spin_lock
8 __spin_lock
4 flockfile
1 pthread_self
12 fread
11 pthread_mutex_unlock
10 pthread_mutex_unlock
1 spin_lock
7 funlockfile
5 funlockfile
2 pthread_self
4 __memcpy
4 __spin_lock
1 __srefill1
1 _sread
1 read$NOCANCEL$UNIX2003
1 dyld_stub_pthread_mutex_lock
1 dyld_stub_pthread_self
1 memcpy
5 unzlocal_getByte
2 fread_file_func
3 unzlocal_getLong
55 unzlocal_getShort
51 unzlocal_getByte
44 fread
15 flockfile
8 pthread_mutex_lock
5 __spin_lock
2 flockfile
12 fread
5 __spin_lock
5 funlockfile
2 dyld_stub_pthread_self
2 pthread_mutex_unlock
1 pthread_mutex_unlock
1 spin_lock
1 __memcpy
1 dyld_stub__spin_lock
1 dyld_stub__spin_unlock
3 fread_file_func
3 unzlocal_getByte
1 dyld_stub_funlockfile
3 unzlocal_getShort
1 dyld_stub_fread
10 fseek_file_func
10 fseek
5 _fseeko
2 _fseeko
1 __bzero
1 _ftello
1 __sflush
1 _sseek
3 flockfile
2 __spin_lock
1 pthread_self
1 fseek
1 pthread_mutex_unlock
1 spin_unlock
1 __memcpy
1 unzlocal_GetCurrentFileInfoInternal
1 unzGoToNextFile
143 unzlocal_GetCurrentFileInfoInternal
83 unzlocal_getLong
67 unzlocal_getByte
60 fread
25 flockfile
14 pthread_mutex_lock
8 __spin_lock
2 flockfile
1 dyld_stub__spin_lock
11 __spin_lock
9 fread
7 pthread_mutex_unlock
6 pthread_mutex_unlock
1 spin_unlock
3 funlockfile
2 funlockfile
1 pthread_self
2 __memcpy
2 dyld_stub_pthread_mutex_lock
1 dyld_stub__spin_unlock
5 unzlocal_getByte
1 dyld_stub_funlockfile
1 fread_file_func
14 unzlocal_getLong
1 dyld_stub_fread
1 fread_file_func
45 unzlocal_getShort
43 unzlocal_getByte
34 fread
10 flockfile
5 __spin_lock
4 pthread_mutex_lock
1 flockfile
8 fread
5 dyld_stub_pthread_self
5 funlockfile
3 __spin_lock
2 __memcpy
1 pthread_mutex_unlock
6 unzlocal_getByte
2 fread_file_func
1 dyld_stub_memcpy
2 unzlocal_getShort
7 fseek_file_func
6 fseek
5 _fseeko
2 __srefill
2 _sread
2 read$NOCANCEL$UNIX2003
2 _sseek
2 lseek
1 _ftello
1 __sflush
1 pthread_mutex_unlock
1 dyld_stub___error
3 __memcpy
3 fread
1 __memcpy
1 __srefill1
1 _sread
1 read$NOCANCEL$UNIX2003
1 fread
2 unzlocal_GetCurrentFileInfoInternal
142 -[NSCFArray addObject:]
142 -[NSCFArray insertObject:atIndex:]
141 _CFArrayReplaceValues
76 malloc_zone_malloc
76 szone_malloc_should_clear
76 small_malloc_from_free_list
54 __memcpy
5 _CFArrayReplaceValues
4 CFRetain
2 -[OFObject retain]
1 OSAtomicAdd32
1 __atomic_add32
1 __atomic_add32
2 __CFTypeCollectionRetain
1 -[NSCFArray insertObject:atIndex:]
121 -[NSFileManager stringWithFileSystemRepresentation:length:]
120 CFStringCreateWithBytes
119 __CFStringCreateImmutableFunnel3
108 _CFRuntimeCreateInstance
104 malloc_zone_malloc
104 szone_malloc_should_clear
103 tiny_malloc_from_free_list
1 szone_malloc_should_clear
4 __bzero
9 __CFStringCreateImmutableFunnel3
1 __memcpy
1 pthread_getspecific
1 CFStringCreateWithBytes
1 CFStringConvertNSStringEncodingToEncoding
24 -[NSArray initWithArray:]
24 -[NSArray initWithArray:copyItems:]
23 -[__NSPlaceholderArray initWithObjects:count:]
23 CFArrayCreate
20 __CFArrayInit
20 _CFRuntimeCreateInstance
20 __bzero
2 CFRetain
1 -[OFObject retain]
1 CFRetain
1 __CFTypeCollectionRetain
1 __CFAllocateObjectArray
1 calloc
1 malloc_zone_calloc
1 szone_malloc_should_clear
1 __bzero
12 -[NSDateComponents dealloc]
10 -[NSObject(NSObject) dealloc]
9 _internal_object_dispose
5 free
3 szone_size
2 szone_free_definite_size
4 objc_destructInstance
4 object_cxxDestructFromClass
3 _class_hasCxxStructorsNoSuper
1 _class_getSuperclass
1 object_dispose
2 -[NSDateComponents dealloc]
10 objc_msgSend
6 -[NSObject(NSObject) release]
5 __CFDoExternRefOperation
3 __CFDoExternRefOperation
2 CFBasicHashRemoveValue
2 ___CFBasicHashFindBucket1
1 __CFBasicHashNullCallback
1 ___CFBasicHashFindBucket1
1 -[NSObject(NSObject) release]
4 -[XMLUnzipArchive initWithPath:error:]
2 -[OFObject release]
1 +[NSCalendar(FocusExtensions) replacement_currentCalendar]
1 -[NSDateComponents init]
1 -[NSDateComponents setHour:]
1 object_getIndexedIvars
1 _class_getInstanceSize
1 -[NSObject(NSObject) autorelease]
1 _CFAutoreleasePoolAddObject
1 objc_collectingEnabled
1 OSAtomicAdd32
1 __atomic_add32
1 __atomic_add32
1 objc_msgSendSuper
1 unzGetCurrentFileInfo
1 unzOpen
1 unzOpen2
1 fseek_file_func
1 fseek
1 _fseeko
1 fstat$INODE64
7 objc_msgSend
1 -[NSURL(NSURL) isFileURL]
1 -[NSURL(NSURL) scheme]
1 CFURLCopyScheme
1 _retainedComponentString
1 _parseComponents
1 -[OFMDataStore fileURL]
1 -[NSDocument fileURL]
1 objc_msgSend
4 -[OFMAttachment readUnzipEntriesFromArchive:error:]
3 -[XMLUnzipArchive entriesWithNamePrefix:]
3 CFStringHasPrefix
3 CFStringFindWithOptions
3 CFStringFindWithOptionsAndLocale
1 CFStringFindWithOptionsAndLocale
1 CFStringGetCStringPtr
1 __CFStringFillCharacterSetInlineBuffer
1 objc_msgSend
14 -[OFMAttachment _wrapperForUnzipEntry:inArchive:error:]
13 -[XMLUnzipArchive dataForEntry:error:]
13 -[XMLUnzipArchive dataForEntry:raw:error:]
11 unzReadCurrentFile
11 fread
11 __srefill1
11 _sread
11 read$NOCANCEL$UNIX2003
1 unzOpen
1 unzOpen2
1 unzGoToFirstFile
1 unzlocal_GetCurrentFileInfoInternal
1 fseek_file_func
1 fseek
1 _fseeko
1 __srefill
1 _sread
1 read$NOCANCEL$UNIX2003
1 unzOpenCurrentFile3
1 -[NSFileWrapper initRegularFileWithContents:]
1 -[NSDictionary initWithObjectsAndKeys:]
1 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:]
1 CFDictionaryCreate
1 __CFBasicHashRehash
146 _ODOGetPrimitiveProperty
146 -[ODOObject primitiveValueForProperty:]
146 CFArrayGetValueAtIndex
18 -[OSImageTextAttachment initWithFileWrapper:externalURL:owner:name:]
18 -[NSImage initWithData:]
18 +[NSBitmapImageRep imageRepsWithData:]
18 +[NSBitmapImageRep _imagesWithData:hfsFileType:extension:zone:expandI mageContentNow:includeAllReps:]
17 ImageSourceOptionsForCGImageSource_index_
17 CGImageSourceCopyPropertiesAtIndex
16 _CGImageSourceGetPropertiesAtIndexInternal
16 makeImagePlus
15 _CGImagePluginInitPNG
15 initImagePng
12 _cg_png_create_read_struct
12 png_create_read_struct_2
12 png_create_struct_2
12 malloc
12 malloc_zone_malloc
12 szone_malloc_should_clear
12 small_malloc_from_free_list
1 CFDictionarySetValue
1 CGImagePluginSetImageBlockProc
1 CGImagePlusSetGeometry
1 CFMutableDictAddProperty
1 CFDictionarySetValue
1 CFBasicHashSetValue
1 __CFBasicHashAddValue
1 __CFBasicHashRehash
1 szone_free
1 CGImagePlusSetImageBlockProc
1 CFDictionarySet_size_t
1 CFDictionarySetValue
1 CFBasicHashSetValue
1 __CFBasicHashAddValue
1 getenv
1 __findenv
1 CFDictionaryCreateCopy
1 CFBasicHashCreateCopy
1 CGImageSourceCreateWithData
1 CGImageReadCreateWithData
1 CFRetain
1 -[NSObject(NSObject) retain]
1 __CFDoExternRefOperation
1 +[OSImageTextAttachment isSupportedImageFileType:]
1 objc_msgSend
15 -[NSMutableAttributedString appendAttributedString:]
15 -[OSStyledTextStorage replaceCharactersInRange:withAttributedString:]
15 -[NSTextStorage edited:range:changeInLength:]
15 -[OOTextStorage processEditing]
15 -[OSStyledTextStorage processEditing]
15 -[NSTextStorage processEditing]
13 -[NSMutableAttributedString(NSMutableAttributedStrin gKitAdditions) fixAttributesInRange:]
13 -[OSStyledTextStorage fixFontAttributeInRange:]
13 -[NSMutableAttributedString(NSMutableAttributedStrin gKitAdditions) fixFontAttributeInRange:]
13 _CFAutoreleasePoolPush
13 calloc
13 malloc_zone_calloc
13 szone_malloc_should_clear
13 small_malloc_from_free_list
2 -[OSStyledTextStorage fixAttachmentAttributeInRange:]
2 -[NSMutableAttributedString(OFExtensions) mutateRanges:matchingString:context:]
1 -[NSMutableAttributedString(OFExtensions) mutateRanges:inRange:matchingString:context:]
1 _killAttachmentsOnPlainCharacters
1 objc_msgSend
3 _OSStyledTextStorageCreateTextAttributes
1 -[OSStyle(AttributeExtensions) createFontDescriptor]
1 -[OSFontDescriptor initWithFamily:size:weight:italic:condensed:narrow :fixedPitch:]
1 -[OSStyle(AttributeExtensions) createParagraphStyle]
1 -[NSMutableParagraphStyle setLineSpacing:]
1 objc_msgSend
2023 Thread_6894 DispatchQueue_2: com.apple.libdispatch-manager (serial)
2023 start_wqthread
2023 _pthread_wqthread
2023 _dispatch_worker_thread2
2023 _dispatch_queue_invoke
2023 _dispatch_mgr_invoke
2023 kevent
2023 Thread_6896
2023 thread_start
2023 _pthread_start
2023 __NSThread__main__
2023 -[NSThread main]
2023 +[OCCCrashCatcher(MachPrivate) _handleExceptions]
2023 mach_msg
2023 mach_msg_trap
2023 Thread_6905
2023 thread_start
2023 _pthread_start
2023 __NSThread__main__
2023 -[NSThread main]
2023 -[OFDedicatedThreadScheduler runScheduleForeverInCurrentThread]
2023 -[OFDedicatedThreadScheduler(Private) runScheduleInCurrentThreadUntilEmpty:]
2023 -[NSConditionLock(OFFixes) replacement_lockWhenCondition:beforeDate:]
2023 -[NSConditionLock lockWhenCondition:beforeDate:]
2023 -[NSCondition waitUntilDate:]
2023 pthread_cond_timedwait_relative_np
2023 _pthread_cond_wait
2023 semaphore_timedwait_signal_trap
2023 Thread_6909
2023 thread_start
2023 _pthread_start
2023 __NSThread__main__
2023 -[NSThread main]
2023 +[NSWindowController(OAExtensionsPrivate) _longIndicatorThread:]
2023 -[NSConditionLock lockWhenCondition:]
2023 -[NSConditionLock(OFFixes) replacement_lockWhenCondition:beforeDate:]
2023 -[NSConditionLock lockWhenCondition:beforeDate:]
2023 -[NSCondition waitUntilDate:]
2023 pthread_cond_timedwait_relative_np
2023 _pthread_cond_wait
2023 semaphore_timedwait_signal_trap
2023 Thread_6919: com.apple.CFSocket.private
2023 thread_start
2023 _pthread_start
2023 __CFSocketManager
2023 select$DARWIN_EXTSN
2023 Thread_16339
2023 start_wqthread
2023 _pthread_wqthread
2023 __workq_kernreturn

Total number in stack (recursive counted multiple, when >=5):
10 objc_msgSend
9 __memcpy
9 __spin_lock
9 szone_malloc_should_clear
6 calloc
6 fread
6 malloc_zone_calloc
6 pthread_mutex_unlock
5 __bzero
5 _sread
5 flockfile
5 fread_file_func
5 object_cxxConstructFromClass
5 read$NOCANCEL$UNIX2003

Sort by top of stack, same collapsed (when >= 5):
semaphore_timedwait_signal_trap 4046
__workq_kernreturn 2023
kevent 2023
mach_msg_trap 2023
select$DARWIN_EXTSN 2023
tiny_malloc_from_free_list 1234
CFArrayGetValueAtIndex 146
small_malloc_from_free_list 101
__memcpy 69
__spin_lock 51
fread 42
pthread_mutex_lock 34
__bzero 27
objc_msgSend 26
pthread_mutex_unlock 19
unzlocal_getByte 19
funlockfile 17
unzlocal_getLong 17
read$NOCANCEL$UNIX2003 16
__CFStringCreateImmutableFunnel3 9
flockfile 9
fread_file_func 9
icu::Calendar::resolveFields(int const (*) [12][8]) 9
dyld_stub_pthread_self 8
icu::GregorianCalendar::GregorianCalendar(icu::Gre gorianCalendar const&) 7
_CFArrayReplaceValues 5
pthread_self 5
unzlocal_getShort 5
Sample analysis of process 347 written to file /dev/stdout