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

Function gjs_profiler_sigusr2

gjs/profiler.cpp:731–743  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

729#ifdef ENABLE_PROFILER
730
731static gboolean gjs_profiler_sigusr2(void* data) {
732 GjsContext* gjs_context = GJS_CONTEXT(data);
733 GjsProfiler* current_profiler = gjs_context_get_profiler(gjs_context);
734
735 if (current_profiler) {
736 if (gjs_profiler_is_running(current_profiler))
737 gjs_profiler_stop(current_profiler);
738 else
739 gjs_profiler_start(current_profiler);
740 }
741
742 return G_SOURCE_CONTINUE;
743}
744
745#endif // ENABLE_PROFILER
746

Callers 1

Calls 4

gjs_context_get_profilerFunction · 0.85
gjs_profiler_is_runningFunction · 0.85
gjs_profiler_stopFunction · 0.85
gjs_profiler_startFunction · 0.85

Tested by

no test coverage detected