* gjs_profiler_set_filename: * @self: A #GjsProfiler * @filename: string containing a filename * * Set the file to which profiling data is written when the @self is stopped. By * default, this is `gjs-$PID.syscap` in the current directory. */
| 847 | * default, this is `gjs-$PID.syscap` in the current directory. |
| 848 | */ |
| 849 | void gjs_profiler_set_filename(GjsProfiler* self, const char* filename) { |
| 850 | g_return_if_fail(self); |
| 851 | g_return_if_fail(!self->running); |
| 852 | |
| 853 | g_free(self->filename); |
| 854 | self->filename = g_strdup(filename); |
| 855 | } |
| 856 | |
| 857 | void gjs_profiler_add_mark(GjsProfiler* self, ProfilerTimePoint time, |
| 858 | ProfilerDuration duration, const char* group, |
no outgoing calls