MCPcopy Create free account
hub / github.com/async-profiler/async-profiler / FileWriter

Method FileWriter

src/writer.cpp:43–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43FileWriter::FileWriter(const char* file_name) : _size(0) {
44 _fd = open(file_name, O_WRONLY | O_TRUNC | O_CREAT, 0644);
45 _buf = (char*)malloc(BUF_SIZE);
46}
47
48FileWriter::FileWriter(int fd) : _fd(fd), _size(0) {
49 _buf = (char*)malloc(BUF_SIZE);

Callers

nothing calls this directly

Calls 1

mallocFunction · 0.85

Tested by

no test coverage detected