Skip to content

Commit b62bd07

Browse files
cleanup
1 parent 93f5f8a commit b62bd07

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

profiling/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ fn build_zend_php_ffis(
103103
"../zend_abstract_interface/sandbox/php8/sandbox.c"
104104
};
105105

106-
// Profiling only needs config and its dependencies.
106+
// Profiling only needs config, exceptions and its dependencies.
107107
let zai_c_files = [
108108
"../zend_abstract_interface/config/config_decode.c",
109109
"../zend_abstract_interface/config/config_ini.c",

profiling/src/php_ffi.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
// Profiling needs ZAI config for INI support.
1919
#include <config/config.h>
2020

21+
// Exception profiling needs to get the message of the exception (and ZAI
22+
// provides `zai_exception_message()`)
2123
#include <exceptions/exceptions.h>
2224

2325
// Used to communicate strings from C -> Rust.

profiling/src/profiling/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ impl Profiler {
773773

774774
labels.push(Label {
775775
key: "exception message",
776-
value: LabelValue::Str(message.clone().into()),
776+
value: LabelValue::Str(message.into()),
777777
});
778778

779779
let n_labels = labels.len();

0 commit comments

Comments
 (0)