Skip to content

Instantly share code, notes, and snippets.

@iljaiwas
Created August 20, 2015 09:21
Show Gist options
  • Save iljaiwas/a81888a49b4e282f7094 to your computer and use it in GitHub Desktop.
Save iljaiwas/a81888a49b4e282f7094 to your computer and use it in GitHub Desktop.
Reactive Cocoa is hard
Sampling process 55496 for 3 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling GitHub Desktop (pid 55496) every 1 millisecond
Process: GitHub Desktop [55496]
Path: /Applications/GitHub Desktop.app/Contents/MacOS/GitHub Desktop
Load Address: 0x10f89d000
Identifier: com.github.GitHub
Version: Bae's Branch (210)
Code Type: X86-64
Parent Process: ??? [1]
Date/Time: 2015-08-20 11:18:06.960 +0200
OS Version: Mac OS X 10.10.5 (14F27)
Report Version: 7
Analysis Tool: /usr/bin/sample
----
Call graph:
2569 Thread_9618032 DispatchQueue_1: com.apple.main-thread (serial)
+ 2569 start (in libdyld.dylib) + 1 [0x7fff93c695c9]
+ 2569 main (in GitHub Desktop) + 33 [0x10f8a1817]
+ 2569 NSApplicationMain (in AppKit) + 1832 [0x7fff8f87e244]
+ 2569 -[NSApplication run] (in AppKit) + 594 [0x7fff8f901af3]
+ 2569 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] (in AppKit) + 346 [0x7fff8f90be58]
+ 2569 _DPSNextEvent (in AppKit) + 1828 [0x7fff8f90cbfd]
+ 2569 _NSHandleCarbonMenuEvent (in AppKit) + 277 [0x7fff8f9d5ce0]
+ 2569 _HandleMenuSelection2 (in HIToolbox) + 446 [0x7fff8b07f0fe]
+ 2569 MenuSelectCore(MenuData*, Point, double, unsigned int, OpaqueMenuRef**, unsigned short*) (in HIToolbox) + 510 [0x7fff8b07f3c1]
+ 2569 TrackMenuCommon(MenuSelectData&, unsigned char*) (in HIToolbox) + 1221 [0x7fff8b071889]
+ 2569 MenuChanged(MenuSelectData*, unsigned char, unsigned char) (in HIToolbox) + 356 [0x7fff8b07f91c]
+ 2569 DrawTheMenu(MenuSelectData*, __CFArray**, unsigned char, unsigned char*) (in HIToolbox) + 280 [0x7fff8b07fbea]
+ 2569 SendMenuOpening(MenuSelectData*, MenuData*, double, unsigned int, unsigned int, __CFDictionary*, unsigned char, unsigned char*) (in HIToolbox) + 708 [0x7fff8b062aa9]
+ 2569 SendEventToEventTarget (in HIToolbox) + 40 [0x7fff8b006cb6]
+ 2569 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) (in HIToolbox) + 386 [0x7fff8aff0fae]
+ 2569 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) (in HIToolbox) + 1260 [0x7fff8aff1b6c]
+ 2569 HIApplication::EventHandler(OpaqueEventHandlerCallRef*, OpaqueEventRef*, void*) (in HIToolbox) + 2036 [0x7fff8afecb40]
+ 2569 UpdateHICommandStatusWithCachedEvent (in HIToolbox) + 47 [0x7fff8b062ed9]
+ 2569 SendHICommandEvent(unsigned int, HICommand const*, unsigned int, unsigned int, unsigned char, void const*, OpaqueEventTargetRef*, OpaqueEventTargetRef*, OpaqueEventRef**) (in HIToolbox) + 428 [0x7fff8b040f45]
+ 2569 SendEventToEventTarget (in HIToolbox) + 40 [0x7fff8b006cb6]
+ 2569 SendEventToEventTargetInternal(OpaqueEventRef*, OpaqueEventTargetRef*, HandlerCallRec*) (in HIToolbox) + 386 [0x7fff8aff0fae]
+ 2569 DispatchEventToHandlers(EventTargetRec*, OpaqueEventRef*, HandlerCallRec*) (in HIToolbox) + 1260 [0x7fff8aff1b6c]
+ 2569 NSSLMMenuEventHandler (in AppKit) + 724 [0x7fff8fab7d6b]
+ 2569 -[NSCarbonMenuImpl _carbonUpdateStatusEvent:handlerCallRef:] (in AppKit) + 529 [0x7fff8fac55b1]
+ 2569 -[NSMenu _enableItem:] (in AppKit) + 692 [0x7fff8fab2f97]
+ 2569 -[GHMainWindowController validateMenuItem:] (in GitHub Desktop) + 1541 [0x10fa02b43]
+ 2569 -[RACSignal(Operations) firstOrDefault:success:error:] (in ReactiveCocoa) + 929 [0x10ffaf1c8]
+ 2569 -[NSCondition wait] (in Foundation) + 237 [0x7fff964b4fd8]
+ 2569 __psynch_cvwait (in libsystem_kernel.dylib) + 10 [0x7fff954b2136]
2569 Thread_9618068 DispatchQueue_2: com.apple.libdispatch-manager (serial)
+ 2569 _dispatch_mgr_thread (in libdispatch.dylib) + 52 [0x7fff89cc2a6a]
+ 2569 kevent64 (in libsystem_kernel.dylib) + 10 [0x7fff954b3232]
2569 Thread_9618328: AFNetworking
+ 2569 thread_start (in libsystem_pthread.dylib) + 13 [0x7fff951b63ed]
+ 2569 _pthread_start (in libsystem_pthread.dylib) + 176 [0x7fff951b8fd7]
+ 2569 _pthread_body (in libsystem_pthread.dylib) + 131 [0x7fff951b905a]
+ 2569 __NSThread__main__ (in Foundation) + 1345 [0x7fff964b4e92]
+ 2569 +[AFURLConnectionOperation networkRequestThreadEntryPoint:] (in AFNetworking) + 204 [0x11023f74c]
+ 2569 -[NSRunLoop(NSRunLoop) run] (in Foundation) + 74 [0x7fff9657c24f]
+ 2569 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] (in Foundation) + 278 [0x7fff96506b29]
+ 2569 CFRunLoopRunSpecific (in CoreFoundation) + 296 [0x7fff8d4e0bd8]
+ 2569 __CFRunLoopRun (in CoreFoundation) + 1371 [0x7fff8d4e137b]
+ 2569 __CFRunLoopServiceMachPort (in CoreFoundation) + 212 [0x7fff8d4e1eb4]
+ 2569 mach_msg (in libsystem_kernel.dylib) + 55 [0x7fff954ac64f]
+ 2569 mach_msg_trap (in libsystem_kernel.dylib) + 10 [0x7fff954ad4de]
2569 Thread_9618329: com.apple.NSURLConnectionLoader
+ 2569 thread_start (in libsystem_pthread.dylib) + 13 [0x7fff951b63ed]
+ 2569 _pthread_start (in libsystem_pthread.dylib) + 176 [0x7fff951b8fd7]
+ 2569 _pthread_body (in libsystem_pthread.dylib) + 131 [0x7fff951b905a]
+ 2569 __NSThread__main__ (in Foundation) + 1345 [0x7fff964b4e92]
+ 2569 +[NSURLConnection(Loader) _resourceLoadLoop:] (in CFNetwork) + 434 [0x7fff93eaa420]
+ 2569 CFRunLoopRunSpecific (in CoreFoundation) + 296 [0x7fff8d4e0bd8]
+ 2569 __CFRunLoopRun (in CoreFoundation) + 1371 [0x7fff8d4e137b]
+ 2569 __CFRunLoopServiceMachPort (in CoreFoundation) + 212 [0x7fff8d4e1eb4]
+ 2569 mach_msg (in libsystem_kernel.dylib) + 55 [0x7fff954ac64f]
+ 2569 mach_msg_trap (in libsystem_kernel.dylib) + 10 [0x7fff954ad4de]
2569 Thread_9618448: com.apple.CFSocket.private
+ 2569 thread_start (in libsystem_pthread.dylib) + 13 [0x7fff951b63ed]
+ 2569 _pthread_start (in libsystem_pthread.dylib) + 176 [0x7fff951b8fd7]
+ 2569 _pthread_body (in libsystem_pthread.dylib) + 131 [0x7fff951b905a]
+ 2569 __select (in libsystem_kernel.dylib) + 10 [0x7fff954b23fa]
2569 Thread_9618592
+ 2569 thread_start (in libsystem_pthread.dylib) + 13 [0x7fff951b63ed]
+ 2569 _pthread_start (in libsystem_pthread.dylib) + 176 [0x7fff951b8fd7]
+ 2569 _pthread_body (in libsystem_pthread.dylib) + 131 [0x7fff951b905a]
+ 2569 _NSEventThread (in AppKit) + 137 [0x7fff8f9d456b]
+ 2569 CFRunLoopRunSpecific (in CoreFoundation) + 296 [0x7fff8d4e0bd8]
+ 2569 __CFRunLoopRun (in CoreFoundation) + 1371 [0x7fff8d4e137b]
+ 2569 __CFRunLoopServiceMachPort (in CoreFoundation) + 212 [0x7fff8d4e1eb4]
+ 2569 mach_msg (in libsystem_kernel.dylib) + 55 [0x7fff954ac64f]
+ 2569 mach_msg_trap (in libsystem_kernel.dylib) + 10 [0x7fff954ad4de]
2569 Thread_9618596: JavaScriptCore::BlockFree
+ 2569 thread_start (in libsystem_pthread.dylib) + 13 [0x7fff951b63ed]
+ 2569 _pthread_start (in libsystem_pthread.dylib) + 176 [0x7fff951b8fd7]
+ 2569 _pthread_body (in libsystem_pthread.dylib) + 131 [0x7fff951b905a]
+ 2569 WTF::wtfThreadEntryPoint(void*) (in JavaScriptCore) + 15 [0x7fff9418acff]
+ 2569 JSC::BlockAllocator::blockFreeingThreadMain() (in JavaScriptCore) + 228 [0x7fff94195544]
+ 2569 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) (in libc++.1.dylib) + 47 [0x7fff94a1fc95]
+ 2569 __psynch_cvwait (in libsystem_kernel.dylib) + 10 [0x7fff954b2136]
2569 Thread_9618597: JavaScriptCore::Marking
+ 2569 thread_start (in libsystem_pthread.dylib) + 13 [0x7fff951b63ed]
+ 2569 _pthread_start (in libsystem_pthread.dylib) + 176 [0x7fff951b8fd7]
+ 2569 _pthread_body (in libsystem_pthread.dylib) + 131 [0x7fff951b905a]
+ 2569 WTF::wtfThreadEntryPoint(void*) (in JavaScriptCore) + 15 [0x7fff9418acff]
+ 2569 JSC::GCThread::gcThreadMain() (in JavaScriptCore) + 88 [0x7fff94195938]
+ 2569 JSC::GCThread::waitForNextPhase() (in JavaScriptCore) + 171 [0x7fff94195adb]
+ 2569 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) (in libc++.1.dylib) + 47 [0x7fff94a1fc95]
+ 2569 __psynch_cvwait (in libsystem_kernel.dylib) + 10 [0x7fff954b2136]
2569 Thread_9618598: JavaScriptCore::Marking
+ 2569 thread_start (in libsystem_pthread.dylib) + 13 [0x7fff951b63ed]
+ 2569 _pthread_start (in libsystem_pthread.dylib) + 176 [0x7fff951b8fd7]
+ 2569 _pthread_body (in libsystem_pthread.dylib) + 131 [0x7fff951b905a]
+ 2569 WTF::wtfThreadEntryPoint(void*) (in JavaScriptCore) + 15 [0x7fff9418acff]
+ 2569 JSC::GCThread::gcThreadMain() (in JavaScriptCore) + 88 [0x7fff94195938]
+ 2569 JSC::GCThread::waitForNextPhase() (in JavaScriptCore) + 171 [0x7fff94195adb]
+ 2569 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) (in libc++.1.dylib) + 47 [0x7fff94a1fc95]
+ 2569 __psynch_cvwait (in libsystem_kernel.dylib) + 10 [0x7fff954b2136]
2569 Thread_9618599: JavaScriptCore::Marking
+ 2569 thread_start (in libsystem_pthread.dylib) + 13 [0x7fff951b63ed]
+ 2569 _pthread_start (in libsystem_pthread.dylib) + 176 [0x7fff951b8fd7]
+ 2569 _pthread_body (in libsystem_pthread.dylib) + 131 [0x7fff951b905a]
+ 2569 WTF::wtfThreadEntryPoint(void*) (in JavaScriptCore) + 15 [0x7fff9418acff]
+ 2569 JSC::GCThread::gcThreadMain() (in JavaScriptCore) + 88 [0x7fff94195938]
+ 2569 JSC::GCThread::waitForNextPhase() (in JavaScriptCore) + 171 [0x7fff94195adb]
+ 2569 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) (in libc++.1.dylib) + 47 [0x7fff94a1fc95]
+ 2569 __psynch_cvwait (in libsystem_kernel.dylib) + 10 [0x7fff954b2136]
2569 Thread_9618600: JavaScriptCore::Marking
+ 2569 thread_start (in libsystem_pthread.dylib) + 13 [0x7fff951b63ed]
+ 2569 _pthread_start (in libsystem_pthread.dylib) + 176 [0x7fff951b8fd7]
+ 2569 _pthread_body (in libsystem_pthread.dylib) + 131 [0x7fff951b905a]
+ 2569 WTF::wtfThreadEntryPoint(void*) (in JavaScriptCore) + 15 [0x7fff9418acff]
+ 2569 JSC::GCThread::gcThreadMain() (in JavaScriptCore) + 88 [0x7fff94195938]
+ 2569 JSC::GCThread::waitForNextPhase() (in JavaScriptCore) + 171 [0x7fff94195adb]
+ 2569 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) (in libc++.1.dylib) + 47 [0x7fff94a1fc95]
+ 2569 __psynch_cvwait (in libsystem_kernel.dylib) + 10 [0x7fff954b2136]
2569 Thread_9618601: JavaScriptCore::Marking
+ 2569 thread_start (in libsystem_pthread.dylib) + 13 [0x7fff951b63ed]
+ 2569 _pthread_start (in libsystem_pthread.dylib) + 176 [0x7fff951b8fd7]
+ 2569 _pthread_body (in libsystem_pthread.dylib) + 131 [0x7fff951b905a]
+ 2569 WTF::wtfThreadEntryPoint(void*) (in JavaScriptCore) + 15 [0x7fff9418acff]
+ 2569 JSC::GCThread::gcThreadMain() (in JavaScriptCore) + 88 [0x7fff94195938]
+ 2569 JSC::GCThread::waitForNextPhase() (in JavaScriptCore) + 171 [0x7fff94195adb]
+ 2569 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) (in libc++.1.dylib) + 47 [0x7fff94a1fc95]
+ 2569 __psynch_cvwait (in libsystem_kernel.dylib) + 10 [0x7fff954b2136]
2569 Thread_9618602: JavaScriptCore::Marking
+ 2569 thread_start (in libsystem_pthread.dylib) + 13 [0x7fff951b63ed]
+ 2569 _pthread_start (in libsystem_pthread.dylib) + 176 [0x7fff951b8fd7]
+ 2569 _pthread_body (in libsystem_pthread.dylib) + 131 [0x7fff951b905a]
+ 2569 WTF::wtfThreadEntryPoint(void*) (in JavaScriptCore) + 15 [0x7fff9418acff]
+ 2569 JSC::GCThread::gcThreadMain() (in JavaScriptCore) + 88 [0x7fff94195938]
+ 2569 JSC::GCThread::waitForNextPhase() (in JavaScriptCore) + 171 [0x7fff94195adb]
+ 2569 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) (in libc++.1.dylib) + 47 [0x7fff94a1fc95]
+ 2569 __psynch_cvwait (in libsystem_kernel.dylib) + 10 [0x7fff954b2136]
2569 Thread_9624411
2569 start_wqthread (in libsystem_pthread.dylib) + 13 [0x7fff951b63dd]
2569 __workq_kernreturn (in libsystem_kernel.dylib) + 10 [0x7fff954b294a]
Total number in stack (recursive counted multiple, when >=5):
11 _pthread_body (in libsystem_pthread.dylib) + 131 [0x7fff951b905a]
11 _pthread_start (in libsystem_pthread.dylib) + 176 [0x7fff951b8fd7]
11 thread_start (in libsystem_pthread.dylib) + 13 [0x7fff951b63ed]
8 __psynch_cvwait (in libsystem_kernel.dylib) + 0 [0x7fff954b212c]
7 WTF::wtfThreadEntryPoint(void*) (in JavaScriptCore) + 15 [0x7fff9418acff]
7 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) (in libc++.1.dylib) + 47 [0x7fff94a1fc95]
6 JSC::GCThread::gcThreadMain() (in JavaScriptCore) + 88 [0x7fff94195938]
6 JSC::GCThread::waitForNextPhase() (in JavaScriptCore) + 171 [0x7fff94195adb]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment