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

Method appendRecording

src/flightRecorder.cpp:478–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

476 }
477
478 void appendRecording(const char* target_file, size_t size) {
479 int append_fd = open(target_file, O_WRONLY);
480 if (append_fd >= 0) {
481 lseek(append_fd, 0, SEEK_END);
482 OS::copyFile(_fd, append_fd, 0, size);
483 close(append_fd);
484 } else {
485 Log::warn("Failed to open JFR recording at %s: %s", target_file, strerror(errno));
486 }
487 }
488
489 Buffer* buffer(int lock_index) {
490 return &_buf[lock_index];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected