mirror of
https://github.com/chromium/crashpad.git
synced 2024-12-27 15:32:10 +08:00
Scott Graham
0849154aed
win: Implementation of CrashReportDatabase for Windows
As there are no extended file attributes available on all Windows file systems (NTFS supports alternate data streams, but Chrome still supports running on FAT), instead of using metadata attached to the file, metadata is stored separately in a simple record-based file and keyed by UUID. Initially, I attempted a metadata file beside each report, each locked separately more closely mirroring the Mac implementation. But given the expected number of of active reports (in the 10s to 100s range?) and the size of the metadata for each, simply storing it all in one file is much less complicated when considering error situations. If the serialization/deserialization becomes a measurable problem, it could be optimized at some complexity by reading/writing only as necessary, or optimizing the storage. R=mark@chromium.org, rsesek@chromium.org BUG=crashpad:1 Review URL: https://codereview.chromium.org/867363003
Description
Languages
C++
92.6%
Objective-C++
2.5%
C
2%
Python
1.7%
Assembly
0.9%
Other
0.3%