| 729 | #ifdef ENABLE_PROFILER |
| 730 | |
| 731 | static 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 |
no test coverage detected