MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / prof_dump_flush

Function prof_dump_flush

deps/jemalloc/src/prof.c:1244–1265  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1242prof_dump_open_t *JET_MUTABLE prof_dump_open = prof_dump_open_impl;
1243
1244static bool
1245prof_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
1267static bool
1268prof_dump_close(bool propagate_err) {

Callers 3

prof_dump_closeFunction · 0.70
prof_dump_writeFunction · 0.70
prof_dump_mapsFunction · 0.70

Calls 2

malloc_write_fdFunction · 0.85
malloc_writeFunction · 0.70

Tested by

no test coverage detected