File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ fn build_zend_php_ffis(
103
103
"../zend_abstract_interface/sandbox/php8/sandbox.c"
104
104
} ;
105
105
106
- // Profiling only needs config and its dependencies.
106
+ // Profiling only needs config, exceptions and its dependencies.
107
107
let zai_c_files = [
108
108
"../zend_abstract_interface/config/config_decode.c" ,
109
109
"../zend_abstract_interface/config/config_ini.c" ,
Original file line number Diff line number Diff line change 18
18
// Profiling needs ZAI config for INI support.
19
19
#include <config/config.h>
20
20
21
+ // Exception profiling needs to get the message of the exception (and ZAI
22
+ // provides `zai_exception_message()`)
21
23
#include <exceptions/exceptions.h>
22
24
23
25
// Used to communicate strings from C -> Rust.
Original file line number Diff line number Diff line change @@ -773,7 +773,7 @@ impl Profiler {
773
773
774
774
labels. push ( Label {
775
775
key : "exception message" ,
776
- value : LabelValue :: Str ( message. clone ( ) . into ( ) ) ,
776
+ value : LabelValue :: Str ( message. into ( ) ) ,
777
777
} ) ;
778
778
779
779
let n_labels = labels. len ( ) ;
You can’t perform that action at this time.
0 commit comments