From cbfbec41b47d4e315e4bd7d3a29f5931833afb6e Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Sun, 24 Dec 2023 15:27:17 +0800 Subject: [PATCH] add extension xhprof --- config/ext.json | 7 ++++++ config/source.json | 10 +++++++++ src/SPC/builder/extension/xhprof.php | 33 ++++++++++++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 src/SPC/builder/extension/xhprof.php diff --git a/config/ext.json b/config/ext.json index b36d4204..e549724f 100644 --- a/config/ext.json +++ b/config/ext.json @@ -479,6 +479,13 @@ "libuv" ] }, + "xhprof": { + "type": "external", + "source": "xhprof", + "ext-depends": [ + "ctype" + ] + }, "xlswriter": { "type": "external", "source": "xlswriter", diff --git a/config/source.json b/config/source.json index 56435a0a..b6cb0441 100644 --- a/config/source.json +++ b/config/source.json @@ -532,6 +532,16 @@ "path": "COPYING" } }, + "xhprof": { + "type": "url", + "url": "https://pecl.php.net/get/xhprof", + "path": "php-src/ext/xhprof-src", + "filename": "xhprof.tgz", + "license": { + "type": "file", + "path": "LICENSE" + } + }, "xlswriter": { "type": "url", "url": "https://pecl.php.net/get/xlswriter", diff --git a/src/SPC/builder/extension/xhprof.php b/src/SPC/builder/extension/xhprof.php new file mode 100644 index 00000000..c3d98aac --- /dev/null +++ b/src/SPC/builder/extension/xhprof.php @@ -0,0 +1,33 @@ +