/** * shell_perf_log_update_statistic_x: * @perf_log: a #ShellPerfLog * @name: name of the statistic * @value: new value for the statistic * * Updates the current value of an 64-bit integer statistic. */ void shell_perf_log_update_statistic_x (ShellPerfLog *perf_log, const char *name, gint64 value) { ShellPerfStatistic *statistic; statistic = lookup_statistic (perf_log, name, "x"); if (G_UNLIKELY (statistic == NULL)) return; statistic->current_value.x = value; statistic->initialized = TRUE; }
/** * cinnamon_perf_log_update_statistic_i: * @perf_log: a #CinnamonPerfLog * @name: name of the statistic * @value: new value for the statistic * * Updates the current value of an 32-bit integer statistic. */ void cinnamon_perf_log_update_statistic_i (CinnamonPerfLog *perf_log, const char *name, gint32 value) { CinnamonPerfStatistic *statistic; statistic = lookup_statistic (perf_log, name, "i"); if (G_UNLIKELY (statistic == NULL)) return; statistic->current_value.i = value; statistic->initialized = TRUE; }