Skip to content

Instantly share code, notes, and snippets.

@agos
Created January 4, 2011 00:36
Show Gist options
  • Save agos/764232 to your computer and use it in GitHub Desktop.
Save agos/764232 to your computer and use it in GitHub Desktop.
Kod is using 80% CPU. It sampled itself o.O
Sampling process 77279 for 1 seconds with 1 millisecond of run time between samples
Sampling completed, processing symbols...
Analysis of sampling Kod (pid 77279) every 1 millisecond
Call graph:
834 Thread_1465135 DispatchQueue_1: com.apple.main-thread (serial)
834 start
834 main
834 NSApplicationMain
834 -[NSApplication run]
834 -[NSApplication sendEvent:]
834 -[NSWindow sendEvent:]
834 -[NSControl keyDown:]
834 forwardMethod
834 forwardMethod
834 -[NSWindow keyDown:]
834 -[NSWindow _processKeyboardUIKey:]
834 -[NSButtonCell performClick:]
834 -[NSControl sendAction:to:]
834 -[NSApplication sendAction:to:from:]
834 -[NSAlert buttonPressed:]
834 -[NSApplication endSheet:returnCode:]
834 -[NSAlert didEndSheet:returnCode:contextInfo:]
834 -[_KObjectProxyShelf _KObjectProxy_dealloc_associations]
834 -[KDocument dealloc]
834 -[CTTabContents dealloc]
834 -[NSDocument dealloc]
834 -[NSDocument _releaseUndoManager]
834 -[NSUndoManager removeAllActions]
834 -[_NSUndoStack removeAllObjects]
834 -[_NSUndoLightInvocation dealloc]
834 -[NSUndoTyping dealloc]
834 -[NSConcreteMutableAttributedString dealloc]
834 __spin_lock
834 Thread_1465160 DispatchQueue_2: com.apple.libdispatch-manager (serial)
834 start_wqthread
834 _pthread_wqthread
834 _dispatch_worker_thread2
834 _dispatch_queue_invoke
834 _dispatch_mgr_invoke
834 kevent
834 Thread_1465168
834 thread_start
834 _pthread_start
834 __NSThread__main__
834 -[KThread main]
834 -[NSRunLoop(NSRunLoop) runMode:beforeDate:]
834 CFRunLoopRunSpecific
834 __CFRunLoopRun
834 mach_msg
834 mach_msg_trap
834 Thread_1465169
834 thread_start
834 _pthread_start
834 __NSThread__main__
834 -[KNodeThread main]
834 node::Start(int, char**)
834 ev_run
834 kqueue_poll
834 kevent
834 Thread_1465170
834 thread_start
834 _pthread_start
834 __NSThread__main__
834 +[NSURLConnection(NSURLConnectionReallyInternal) _resourceLoadLoop:]
834 CFRunLoopRunSpecific
834 __CFRunLoopRun
834 mach_msg
834 mach_msg_trap
834 Thread_1465196: com.apple.CFSocket.private
834 thread_start
834 _pthread_start
834 __CFSocketManager
834 select$DARWIN_EXTSN
834 Thread_1646089
834 thread_start
834 _pthread_start
834 __NSThread__main__
834 -[NSUIHeartBeat _heartBeatThread:]
832 usleep
831 nanosleep
831 __semwait_signal
1 cerror
2 -[NSApplication _keyWindowForHeartBeat]
2 -[NSObject(NSObject) retain]
1 __CFDoExternRefOperation
1 CFBasicHashAddValue
1 ___CFBasicHashFindBucket1
1 __spin_lock
834 Thread_1648546
834 start_wqthread
834 _pthread_wqthread
834 __workq_kernreturn
Total number in stack (recursive counted multiple, when >=5):
5 _pthread_start
5 thread_start
Sort by top of stack, same collapsed (when >= 5):
kevent 1668
mach_msg_trap 1668
__spin_lock 835
__workq_kernreturn 834
select$DARWIN_EXTSN 834
__semwait_signal 831
Sample analysis of process 77279 written to file /dev/stdout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment