RunLoop总结:RunLoop的应用场景(四)App卡顿监测

2016-12-15 08:56:39.921 RunLoopDemo03[957:16300] lag happen, detail below: 

 Incident Identifier: 68BAB24C-3224-46C8-89BF-F9AABA2E3530

CrashReporter Key:   TODO

Hardware Model:      x86_64

Process:         RunLoopDemo03 [957]

Path:            /Users/harvey/Library/Developer/CoreSimulator/Devices/6ED39DBB-9F69-4ACB-9CE3-E6EB56BBFECE/data/Containers/Bundle/Application/5A94DEFE-4E2E-4D23-9F69-7B1954B2C960/RunLoopDemo03.app/RunLoopDemo03

Identifier:      com.Haley.RunLoopDemo03

Version:         1.0 (1)

Code Type:       X86-64

Parent Process:  debugserver [958]


Date/Time: 2016-12-15 00:56:38 +0000 OS Version: Mac OS X 10.1 (16A323) Report Version: 104
Exception Type: SIGTRAP Exception Codes: TRAP_TRACE at 0x1063da728 Crashed Thread: 4
Thread 0: 0 libsystem_kernel.dylib 0x000000010a14341a mach_msg_trap + 10 1 CoreFoundation 0x0000000106f1e7b4 __CFRunLoopServiceMachPort + 212 2 CoreFoundation 0x0000000106f1dc31 __CFRunLoopRun + 1345 3 CoreFoundation 0x0000000106f1d494 CFRunLoopRunSpecific + 420 4 GraphicsServices 0x000000010ad8aa6f GSEventRunModal + 161 5 UIKit 0x00000001073b7964 UIApplicationMain + 159 6 RunLoopDemo03 0x00000001063dbf8f main + 111 7 libdyld.dylib 0x0000000109d7468d start + 1
Thread 1: 0 libsystem_kernel.dylib 0x000000010a14be5e kevent_qos + 10 1 libdispatch.dylib 0x0000000109d13074 _dispatch_mgr_invoke + 248 2 libdispatch.dylib 0x0000000109d12e76 _dispatch_mgr_init + 0
Thread 2: 0 libsystem_kernel.dylib 0x000000010a14b4e6 __workq_kernreturn + 10 1 libsystem_pthread.dylib 0x000000010a16e221 start_wqthread + 13
Thread 3: 0 libsystem_kernel.dylib 0x000000010a14341a mach_msg_trap + 10 1 CoreFoundation 0x0000000106f1e7b4 __CFRunLoopServiceMachPort + 212 2 CoreFoundation 0x0000000106f1dc31 __CFRunLoopRun + 1345 3 CoreFoundation 0x0000000106f1d494 CFRunLoopRunSpecific + 420 4 Foundation 0x00000001064d7ff0 -[NSRunLoop runMode:beforeDate:] + 274 5 Foundation 0x000000010655f991 -[NSRunLoop runUntilDate:] + 78 6 UIKit 0x0000000107e3d539 -[UIEventFetcher threadMain] + 118 7 Foundation 0x00000001064e7ee4 __NSThread__start__ + 1243 8 libsystem_pthread.dylib 0x000000010a16eabb _pthread_body + 180 9 libsystem_pthread.dylib 0x000000010a16ea07 _pthread_body + 0 10 libsystem_pthread.dylib 0x000000010a16e231 thread_start + 13
Thread 4 Crashed: 0 RunLoopDemo03 0x00000001063dfae5 -[PLCrashReporter generateLiveReportWithThread:error:] + 632 1 RunLoopDemo03 0x00000001063da728 -[FluencyMonitor handleStackInfo] + 152 2 RunLoopDemo03 0x00000001063da2cf runLoopTimerCallBack + 351 3 CoreFoundation 0x0000000106f26964 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20 4 CoreFoundation 0x0000000106f265f3 __CFRunLoopDoTimer + 1075 5 CoreFoundation 0x0000000106f2617a __CFRunLoopDoTimers + 250 6 CoreFoundation 0x0000000106f1df01 __CFRunLoopRun + 2065 7 CoreFoundation 0x0000000106f1d494 CFRunLoopRunSpecific + 420 8 Foundation 0x00000001064d7ff0 -[NSRunLoop runMode:beforeDate:] + 274 9 Foundation 0x00000001064d7ecb -[NSRunLoop run] + 76 10 RunLoopDemo03 0x00000001063d9cbd +[FluencyMonitor monitorThreadEntryPoint] + 253 11 Foundation 0x00000001064e7ee4 __NSThread__start__ + 1243 12 libsystem_pthread.dylib 0x000000010a16eabb _pthread_body + 180 13 libsystem_pthread.dylib 0x000000010a16ea07 _pthread_body + 0 14 libsystem_pthread.dylib 0x000000010a16e231 thread_start + 13
Thread 4 crashed with X86-64 Thread State: rip: 0x00000001063dfae5 rbp: 0x000070000f53fc50 rsp: 0x000070000f53f9c0 rax: 0x000070000f53fa20 rbx: 0x000070000f53fb60 rcx: 0x0000000000005e0b rdx: 0x0000000000000000 rdi: 0x00000001063dfc6a rsi: 0x000070000f53f9f0 r8: 0x0000000000000014 r9: 0xffffffffffffffec r10: 0x000000010a1433f6 r11: 0x0000000000000246 r12: 0x000060800016b580 r13: 0x0000000000000000 r14: 0x0000000000000006 r15: 0x000070000f53fa40 rflags: 0x0000000000000206 cs: 0x000000000000002b fs: 0x0000000000000000 gs: 0x0000000000000000