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

Function prof_dump_flush

deps/memkind/src/jemalloc/src/prof.c:974–995  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

972prof_dump_open_t *JET_MUTABLE prof_dump_open = prof_dump_open_impl;
973
974static bool
975prof_dump_flush(bool propagate_err) {
976 bool ret = false;
977 ssize_t err;
978
979 cassert(config_prof);
980
981 err = write(prof_dump_fd, prof_dump_buf, prof_dump_buf_end);
982 if (err == -1) {
983 if (!propagate_err) {
984 malloc_write("<jemalloc>: write() failed during heap "
985 "profile flush\n");
986 if (opt_abort) {
987 abort();
988 }
989 }
990 ret = true;
991 }
992 prof_dump_buf_end = 0;
993
994 return ret;
995}
996
997static bool
998prof_dump_close(bool propagate_err) {

Callers 3

prof_dump_closeFunction · 0.70
prof_dump_writeFunction · 0.70
prof_dump_mapsFunction · 0.70

Calls 1

malloc_writeFunction · 0.70

Tested by

no test coverage detected