mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-01 09:03:31 +07:00
IDEA-349414 add report filtering fast path
GitOrigin-RevId: 05685b7796a7ccb6b745a20b9667f8a68ef6a10f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
597ae6cc6c
commit
83a196f3a7
@@ -583,6 +583,7 @@ private fun collectCrashInfo(pid: String, lastModified: Long): CrashInfo? {
|
||||
}
|
||||
// https://developer.apple.com/documentation/xcode/interpreting-the-json-format-of-a-crash-report
|
||||
val content = Files.readString(file.toPath())
|
||||
if (!content.contains(pid)) return@firstNotNullOfOrNull null // certainly not our crash report
|
||||
val jsonObjects = content.splitToSequence("\r\n", "\n", "\r", limit = 2).toList()
|
||||
check(jsonObjects.size == 2) { content }
|
||||
val (metadata, report) = jsonObjects.map(Json::parseToJsonElement)
|
||||
|
||||
Reference in New Issue
Block a user