Source
13
13
** GNU General Public License for more details.
14
14
**
15
15
** You should have received a copy of the GNU General Public License
16
16
** along with this program; if not, write to the Free Software
17
17
** Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18
18
**/
19
19
20
20
#ifndef ZABBIX_PROF_H
21
21
#define ZABBIX_PROF_H
22
22
23
+
#define ZBX_PROF_UNKNOWN 0x00
23
24
#define ZBX_PROF_PROCESSING 0x01
24
25
#define ZBX_PROF_RWLOCK 0x02
25
26
#define ZBX_PROF_MUTEX 0x04
26
27
#define ZBX_PROF_ALL 0xff
27
28
28
29
typedef int zbx_prof_scope_t;
29
30
30
31
void zbx_prof_enable(zbx_prof_scope_t scope);
31
32
void zbx_prof_disable(void);
32
33
void zbx_prof_start(const char *func_name, zbx_prof_scope_t scope);