forked from krakjoe/stat
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzend_stat_buffer.h
42 lines (34 loc) · 2.16 KB
/
zend_stat_buffer.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
+----------------------------------------------------------------------+
| stat |
+----------------------------------------------------------------------+
| Copyright (c) Joe Watkins 2019 |
+----------------------------------------------------------------------+
| This source file is subject to version 3.01 of the PHP license, |
| that is bundled with this package in the file LICENSE, and is |
| available through the world-wide-web at the following url: |
| http://www.php.net/license/3_01.txt |
| If you did not receive a copy of the PHP license and are unable to |
| obtain it through the world-wide-web, please send a note to |
| [email protected] so we can mail you a copy immediately. |
+----------------------------------------------------------------------+
| Author: krakjoe |
+----------------------------------------------------------------------+
*/
#ifndef ZEND_STAT_BUFFER_H
# define ZEND_STAT_BUFFER_H
typedef struct _zend_stat_buffer_t zend_stat_buffer_t;
zend_stat_buffer_t* zend_stat_buffer_startup(zend_long samples, zend_long interval, zend_bool arginfo);
void zend_stat_buffer_shutdown(zend_stat_buffer_t *);
void zend_stat_buffer_activate(zend_stat_buffer_t *buffer, pid_t pid);
void zend_stat_buffer_deactivate(zend_stat_buffer_t *buffer, pid_t pid);
#include "zend_stat_sampler.h"
double zend_stat_buffer_started(zend_stat_buffer_t *buffer);
void zend_stat_buffer_insert(zend_stat_buffer_t *buffer, zend_stat_sample_t *sample);
zend_bool zend_stat_buffer_empty(zend_stat_buffer_t *buffer);
zend_bool zend_stat_buffer_dump(zend_stat_buffer_t *buffer, int fd);
void zend_stat_buffer_interval_set(zend_stat_buffer_t *buffer, zend_long interval);
zend_long zend_stat_buffer_interval_get(zend_stat_buffer_t *buffer);
void zend_stat_buffer_arginfo_set(zend_stat_buffer_t *buffer, zend_bool arginfo);
zend_bool zend_stat_buffer_arginfo_get(zend_stat_buffer_t *buffer);
#endif /* ZEND_STAT_BUFFER_H */