KSCrashReportFields.h 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. //
  2. // KSCrashReportFields.h
  3. //
  4. // Created by Karl Stenerud on 2012-10-07.
  5. //
  6. // Copyright (c) 2012 Karl Stenerud. All rights reserved.
  7. //
  8. // Permission is hereby granted, free of charge, to any person obtaining a copy
  9. // of this software and associated documentation files (the "Software"), to deal
  10. // in the Software without restriction, including without limitation the rights
  11. // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  12. // copies of the Software, and to permit persons to whom the Software is
  13. // furnished to do so, subject to the following conditions:
  14. //
  15. // The above copyright notice and this permission notice shall remain in place
  16. // in this source code.
  17. //
  18. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  19. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  20. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  21. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  22. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  23. // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
  24. // THE SOFTWARE.
  25. //
  26. #ifndef HDR_KSCrashReportFields_h
  27. #define HDR_KSCrashReportFields_h
  28. #pragma mark - Report Types -
  29. #define KSCrashReportType_Minimal "minimal"
  30. #define KSCrashReportType_Standard "standard"
  31. #define KSCrashReportType_Custom "custom"
  32. #pragma mark - Memory Types -
  33. #define KSCrashMemType_Block "objc_block"
  34. #define KSCrashMemType_Class "objc_class"
  35. #define KSCrashMemType_NullPointer "null_pointer"
  36. #define KSCrashMemType_Object "objc_object"
  37. #define KSCrashMemType_String "string"
  38. #define KSCrashMemType_Unknown "unknown"
  39. #pragma mark - Exception Types -
  40. #define KSCrashExcType_CPPException "cpp_exception"
  41. #define KSCrashExcType_Deadlock "deadlock"
  42. #define KSCrashExcType_Mach "mach"
  43. #define KSCrashExcType_NSException "nsexception"
  44. #define KSCrashExcType_Signal "signal"
  45. #define KSCrashExcType_User "user"
  46. #pragma mark - Common -
  47. #define KSCrashField_Address "address"
  48. #define KSCrashField_Contents "contents"
  49. #define KSCrashField_Exception "exception"
  50. #define KSCrashField_FirstObject "first_object"
  51. #define KSCrashField_Index "index"
  52. #define KSCrashField_Ivars "ivars"
  53. #define KSCrashField_Language "language"
  54. #define KSCrashField_Name "name"
  55. #define KSCrashField_UserInfo "userInfo"
  56. #define KSCrashField_ReferencedObject "referenced_object"
  57. #define KSCrashField_Type "type"
  58. #define KSCrashField_UUID "uuid"
  59. #define KSCrashField_Value "value"
  60. #define KSCrashField_Error "error"
  61. #define KSCrashField_JSONData "json_data"
  62. #pragma mark - Notable Address -
  63. #define KSCrashField_Class "class"
  64. #define KSCrashField_LastDeallocObject "last_deallocated_obj"
  65. #pragma mark - Backtrace -
  66. #define KSCrashField_InstructionAddr "instruction_addr"
  67. #define KSCrashField_LineOfCode "line_of_code"
  68. #define KSCrashField_ObjectAddr "object_addr"
  69. #define KSCrashField_ObjectName "object_name"
  70. #define KSCrashField_SymbolAddr "symbol_addr"
  71. #define KSCrashField_SymbolName "symbol_name"
  72. #pragma mark - Stack Dump -
  73. #define KSCrashField_DumpEnd "dump_end"
  74. #define KSCrashField_DumpStart "dump_start"
  75. #define KSCrashField_GrowDirection "grow_direction"
  76. #define KSCrashField_Overflow "overflow"
  77. #define KSCrashField_StackPtr "stack_pointer"
  78. #pragma mark - Thread Dump -
  79. #define KSCrashField_Backtrace "backtrace"
  80. #define KSCrashField_Basic "basic"
  81. #define KSCrashField_Crashed "crashed"
  82. #define KSCrashField_CurrentThread "current_thread"
  83. #define KSCrashField_DispatchQueue "dispatch_queue"
  84. #define KSCrashField_NotableAddresses "notable_addresses"
  85. #define KSCrashField_Registers "registers"
  86. #define KSCrashField_Skipped "skipped"
  87. #define KSCrashField_Stack "stack"
  88. #pragma mark - Binary Image -
  89. #define KSCrashField_CPUSubType "cpu_subtype"
  90. #define KSCrashField_CPUType "cpu_type"
  91. #define KSCrashField_ImageAddress "image_addr"
  92. #define KSCrashField_ImageVmAddress "image_vmaddr"
  93. #define KSCrashField_ImageSize "image_size"
  94. #define KSCrashField_ImageMajorVersion "major_version"
  95. #define KSCrashField_ImageMinorVersion "minor_version"
  96. #define KSCrashField_ImageRevisionVersion "revision_version"
  97. #define KSCrashField_ImageCrashInfoMessage "crash_info_message"
  98. #define KSCrashField_ImageCrashInfoMessage2 "crash_info_message2"
  99. #pragma mark - Memory -
  100. #define KSCrashField_Free "free"
  101. #define KSCrashField_Usable "usable"
  102. #pragma mark - Error -
  103. #define KSCrashField_Backtrace "backtrace"
  104. #define KSCrashField_Code "code"
  105. #define KSCrashField_CodeName "code_name"
  106. #define KSCrashField_CPPException "cpp_exception"
  107. #define KSCrashField_ExceptionName "exception_name"
  108. #define KSCrashField_Mach "mach"
  109. #define KSCrashField_NSException "nsexception"
  110. #define KSCrashField_Reason "reason"
  111. #define KSCrashField_Signal "signal"
  112. #define KSCrashField_Subcode "subcode"
  113. #define KSCrashField_UserReported "user_reported"
  114. #pragma mark - Process State -
  115. #define KSCrashField_LastDeallocedNSException "last_dealloced_nsexception"
  116. #define KSCrashField_ProcessState "process"
  117. #pragma mark - App Stats -
  118. #define KSCrashField_ActiveTimeSinceCrash "active_time_since_last_crash"
  119. #define KSCrashField_ActiveTimeSinceLaunch "active_time_since_launch"
  120. #define KSCrashField_AppActive "application_active"
  121. #define KSCrashField_AppInFG "application_in_foreground"
  122. #define KSCrashField_BGTimeSinceCrash "background_time_since_last_crash"
  123. #define KSCrashField_BGTimeSinceLaunch "background_time_since_launch"
  124. #define KSCrashField_LaunchesSinceCrash "launches_since_last_crash"
  125. #define KSCrashField_SessionsSinceCrash "sessions_since_last_crash"
  126. #define KSCrashField_SessionsSinceLaunch "sessions_since_launch"
  127. #pragma mark - Report -
  128. #define KSCrashField_Crash "crash"
  129. #define KSCrashField_Debug "debug"
  130. #define KSCrashField_Diagnosis "diagnosis"
  131. #define KSCrashField_ID "id"
  132. #define KSCrashField_ProcessName "process_name"
  133. #define KSCrashField_Report "report"
  134. #define KSCrashField_Timestamp "timestamp"
  135. #define KSCrashField_Version "version"
  136. #pragma mark Minimal
  137. #define KSCrashField_CrashedThread "crashed_thread"
  138. #pragma mark Standard
  139. #define KSCrashField_AppStats "application_stats"
  140. #define KSCrashField_BinaryImages "binary_images"
  141. #define KSCrashField_System "system"
  142. #define KSCrashField_Memory "memory"
  143. #define KSCrashField_Threads "threads"
  144. #define KSCrashField_User "user"
  145. #define KSCrashField_ConsoleLog "console_log"
  146. #pragma mark Incomplete
  147. #define KSCrashField_Incomplete "incomplete"
  148. #define KSCrashField_RecrashReport "recrash_report"
  149. #pragma mark System
  150. #define KSCrashField_AppStartTime "app_start_time"
  151. #define KSCrashField_AppUUID "app_uuid"
  152. #define KSCrashField_BootTime "boot_time"
  153. #define KSCrashField_BundleID "CFBundleIdentifier"
  154. #define KSCrashField_BundleName "CFBundleName"
  155. #define KSCrashField_BundleShortVersion "CFBundleShortVersionString"
  156. #define KSCrashField_BundleVersion "CFBundleVersion"
  157. #define KSCrashField_CPUArch "cpu_arch"
  158. #define KSCrashField_CPUType "cpu_type"
  159. #define KSCrashField_CPUSubType "cpu_subtype"
  160. #define KSCrashField_BinaryCPUType "binary_cpu_type"
  161. #define KSCrashField_BinaryCPUSubType "binary_cpu_subtype"
  162. #define KSCrashField_DeviceAppHash "device_app_hash"
  163. #define KSCrashField_Executable "CFBundleExecutable"
  164. #define KSCrashField_ExecutablePath "CFBundleExecutablePath"
  165. #define KSCrashField_Jailbroken "jailbroken"
  166. #define KSCrashField_KernelVersion "kernel_version"
  167. #define KSCrashField_Machine "machine"
  168. #define KSCrashField_Model "model"
  169. #define KSCrashField_OSVersion "os_version"
  170. #define KSCrashField_ParentProcessID "parent_process_id"
  171. #define KSCrashField_ProcessID "process_id"
  172. #define KSCrashField_ProcessName "process_name"
  173. #define KSCrashField_Size "size"
  174. #define KSCrashField_Storage "storage"
  175. #define KSCrashField_SystemName "system_name"
  176. #define KSCrashField_SystemVersion "system_version"
  177. #define KSCrashField_TimeZone "time_zone"
  178. #define KSCrashField_BuildType "build_type"
  179. #endif