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

Function gjs_profiler_set_filename

gjs/profiler.cpp:849–855  ·  view source on GitHub ↗

* 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. */

Source from the content-addressed store, hash-verified

847 * default, this is `gjs-$PID.syscap` in the current directory.
848 */
849void 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
857void gjs_profiler_add_mark(GjsProfiler* self, ProfilerTimePoint time,
858 ProfilerDuration duration, const char* group,

Callers 2

mainFunction · 0.85

Calls

no outgoing calls

Tested by 1