mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
2005-10-30 Soren Sandmann <sandmann@redhat.com> * Merge stackstash-reorg branch into HEAD
17 lines
520 B
C
17 lines
520 B
C
#include "profile.h"
|
|
|
|
typedef struct Collector Collector;
|
|
|
|
typedef void (* CollectorFunc) (gpointer data);
|
|
|
|
/* callback is called whenever a new sample arrives */
|
|
Collector *collector_new (CollectorFunc callback,
|
|
gpointer data);
|
|
gboolean collector_start (Collector *collector,
|
|
GError **err);
|
|
void collector_stop (Collector *collector);
|
|
void collector_reset (Collector *collector);
|
|
int collector_get_n_samples (Collector *collector);
|
|
|
|
Profile * collector_create_profile (Collector *collector);
|