MCPcopy Create free account
hub / github.com/GNOME/gjs / gjs_profiler_set_fd

Function gjs_profiler_set_fd

gjs/profiler.cpp:905–919  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

903}
904
905void gjs_profiler_set_fd(GjsProfiler* self, int fd) {
906 g_return_if_fail(self);
907 g_return_if_fail(!self->filename);
908 g_return_if_fail(!self->running);
909
910#ifdef ENABLE_PROFILER
911 if (self->fd != fd) {
912 if (self->fd != -1)
913 close(self->fd);
914 self->fd = fd;
915 }
916#else
917 (void)fd; // Unused in the no-profiler case
918#endif
919}
920
921void gjs_profiler_set_finalize_status(GjsProfiler* self,
922 JSFinalizeStatus status) {

Callers 1

mainFunction · 0.85

Calls 1

closeFunction · 0.85

Tested by

no test coverage detected