Next: , Previous: , Up: System Statistics: Performance Monitoring   [Contents]


B.7.2 STStatsCollector: The Abstract Engine

Derivable base class (starter/stats-collector.h). There is no public st_stats_collector_new; subclass it or use STProcessStatsCollector. GObject properties: stats (STStats *), interval (milliseconds, typically 500–5000). Virtual method update samples into the attached STStats.

Function: void st_stats_collector_set_context (STStatsCollector *self, GMainContext *context)

Sets the context for the sampling timer / update callbacks.

self

Collector.

context

Affinity context (default: thread-default).

Returns: Nothing.