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

Method flush

src/writer.cpp:60–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void FileWriter::flush(const char* data, size_t len) {
61 while (len > 0) {
62 ssize_t bytes = ::write(_fd, data, len);
63 if (bytes < 0) {
64 _err = errno;
65 break;
66 }
67 data += bytes;
68 len -= (size_t)bytes;
69 }
70}
71
72void FileWriter::write(const char* data, size_t len) {
73 if (_size + len > BUF_SIZE) {

Callers 2

flushJfrMethod · 0.45
dumpMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected