| 1242 | prof_dump_open_t *JET_MUTABLE prof_dump_open = prof_dump_open_impl; |
| 1243 | |
| 1244 | static bool |
| 1245 | prof_dump_flush(bool propagate_err) { |
| 1246 | bool ret = false; |
| 1247 | ssize_t err; |
| 1248 | |
| 1249 | cassert(config_prof); |
| 1250 | |
| 1251 | err = malloc_write_fd(prof_dump_fd, prof_dump_buf, prof_dump_buf_end); |
| 1252 | if (err == -1) { |
| 1253 | if (!propagate_err) { |
| 1254 | malloc_write("<jemalloc>: write() failed during heap " |
| 1255 | "profile flush\n"); |
| 1256 | if (opt_abort) { |
| 1257 | abort(); |
| 1258 | } |
| 1259 | } |
| 1260 | ret = true; |
| 1261 | } |
| 1262 | prof_dump_buf_end = 0; |
| 1263 | |
| 1264 | return ret; |
| 1265 | } |
| 1266 | |
| 1267 | static bool |
| 1268 | prof_dump_close(bool propagate_err) { |
no test coverage detected