Class
ShellPerfLog
Functions
shell_perf_log_get_default
Gets the global singleton performance log. This is initially disabled and must be explicitly enabled with shell_perf_log_set_enabled().
Instance methods
shell_perf_log_add_statistics_callback
Adds a function that will be called before statistics are recorded.
The function would typically compute one or more statistics values
and call a function such as shell_perf_log_update_statistic_i()
to update the value that will be recorded.
shell_perf_log_collect_statistics
Calls all the update functions added with
shell_perf_log_add_statistics_callback()
and then records events
for all statistics, followed by a perf.statisticsCollected event.
shell_perf_log_define_statistic
Defines a statistic. A statistic is a numeric value that is stored
by the performance log and recorded periodically or when
shell_perf_log_collect_statistics()
is called explicitly.
shell_perf_log_dump_events
Dump the definition of currently defined events and statistics, formatted as JSON, to the specified output stream. The JSON output is an array, with each element being a dictionary of the form:.
shell_perf_log_dump_log
Writes the performance event log, formatted as JSON, to the specified output stream. For performance reasons, the output stream passed in should generally be a buffered (or memory) output stream, since it will be written to in small pieces. The JSON output is an array with the elements of the array also being arrays, of the form ‘[‘
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.