-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathscout_extern.h
31 lines (27 loc) · 1.49 KB
/
scout_extern.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
/*
* Scout APM extension for PHP
*
* Copyright (C) 2019-
* For license information, please see the LICENSE file.
*/
#ifndef SCOUT_API_H
#define SCOUT_API_H
extern ZEND_NAMED_FUNCTION(scoutapm_default_handler);
extern double scoutapm_microtime();
extern void record_arguments_for_call(const char *call_reference, int argc, zval *argv);
extern zend_long find_index_for_recorded_arguments(const char *call_reference);
extern void record_observed_stack_frame(const char *function_name, double microtime_entered, double microtime_exited, int argc, zval *argv);
extern int handler_index_for_function(const char *function_to_lookup);
extern const char* determine_function_name(zend_execute_data *execute_data);
extern const char *unique_resource_id(const char *scout_wrapper_type, zval *resource_id);
extern const char *unique_class_instance_id(zval *class_instance);
extern void safely_copy_argument_zval_as_scalar(zval *original_to_copy, zval *destination);
extern int unchecked_handler_index_for_function(const char *function_to_lookup);
extern void add_function_to_instrumentation(const char *function_name, const char *magic_method_name);
extern int should_be_instrumented(const char *function_name, const char *magic_method_name);
extern const char *scout_str_replace(const char *search, const char *replace, const char *subject);
ZEND_EXTERN_MODULE_GLOBALS(scoutapm);
extern indexed_handler_lookup handler_lookup[];
extern const int handler_lookup_size;
extern zif_handler original_handlers[];
#endif /* SCOUT_API_H */