| 243 | } |
| 244 | |
| 245 | pub struct CrashLogger { |
| 246 | crashes: HashMap<String, CrashEntry>, |
| 247 | hangs: HashMap<String, CrashEntry>, |
| 248 | metadata_path: PathBuf, |
| 249 | crash_dir: Option<PathBuf>, |
| 250 | hang_dir: Option<PathBuf>, |
| 251 | /// A limit on the total number of crashes/hangs to save. |
| 252 | save_limit: usize, |
| 253 | print_crashes: bool, |
| 254 | start_time: std::time::Instant, |
| 255 | } |
| 256 | |
| 257 | impl CrashLogger { |
| 258 | pub fn new(config: &crate::Config) -> anyhow::Result<Self> { |
nothing calls this directly
no outgoing calls
no test coverage detected