mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 07:30:54 +00:00
Merge stackstash-reorg branch into HEAD
2005-10-30 Soren Sandmann <sandmann@redhat.com> * Merge stackstash-reorg branch into HEAD
This commit is contained in:
committed by
Søren Sandmann Pedersen
parent
3783be00a8
commit
dff4affaab
16
collector.h
Normal file
16
collector.h
Normal file
@ -0,0 +1,16 @@
|
||||
#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);
|
||||
Reference in New Issue
Block a user