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

Function prof_open_maps

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

Source from the content-addressed store, hash-verified

1401#ifndef _WIN32
1402JEMALLOC_FORMAT_PRINTF(1, 2)
1403static int
1404prof_open_maps(const char *format, ...) {
1405 int mfd;
1406 va_list ap;
1407 char filename[PATH_MAX + 1];
1408
1409 va_start(ap, format);
1410 malloc_vsnprintf(filename, sizeof(filename), format, ap);
1411 va_end(ap);
1412 mfd = open(filename, O_RDONLY | O_CLOEXEC);
1413
1414 return mfd;
1415}
1416#endif
1417
1418static int

Callers 1

prof_dump_mapsFunction · 0.70

Calls 1

malloc_vsnprintfFunction · 0.70

Tested by

no test coverage detected