| 开发者 | perfbaseorg |
|---|---|
| 更新时间 | 2026年5月28日 15:11 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
ext-perfbase PHP extension. The plugin does not submit traces until profiling is enabled and an API key is configured.
The plugin can profile:
perfbase-<version>.zip asset from GitHub Releases through the WordPress plugins screen.bash -c "$(curl -fsSL https://cdn.perfbase.com/install.sh)"
The installer performs the same download, checksum, copy, ini-file, and verification steps automatically.
Manual extension installation with wget:
php -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;'.uname -m. Use amd64 for x86_64, and arm64 for aarch64 or Apple Silicon.wget https://cdn.perfbase.com/extension/latest/perfbase-8.3-linux-amd64-gnu-release.so
wget https://cdn.perfbase.com/extension/latest/perfbase-8.3-linux-amd64-gnu-release.so.sha256sum.txt
sha256sum -c perfbase-8.3-linux-amd64-gnu-release.so.sha256sum.txt
Alpine Linux:
wget https://cdn.perfbase.com/extension/latest/perfbase-8.3-linux-amd64-musl-release.so
wget https://cdn.perfbase.com/extension/latest/perfbase-8.3-linux-amd64-musl-release.so.sha256sum.txt
sha256sum -c perfbase-8.3-linux-amd64-musl-release.so.sha256sum.txt
macOS:
wget https://cdn.perfbase.com/extension/latest/perfbase-8.3-darwin-arm64-release.dylib
wget https://cdn.perfbase.com/extension/latest/perfbase-8.3-darwin-arm64-release.dylib.sha256sum.txt
sha256sum -c perfbase-8.3-darwin-arm64-release.dylib.sha256sum.txt
Replace 8.3 with your PHP major/minor version and replace amd64 with arm64 when using ARM64 Linux.
php -i | grep '^extension_dir'.php --ini.perfbase.ini in one of the loaded ini scan directories:extension=perfbase.ext
Replace perfbase.ext with the downloaded filename, such as perfbase.so or perfbase.dylib.
8. Restart PHP-FPM, Apache, Nginx Unit, or any long-lived PHP worker.
9. Verify the extension is loaded with php -m | grep perfbase.
For a specific pinned build instead of the mutable latest build, replace /extension/latest/ with a versioned path such as /extension/v123/.No. The admin settings screen remains available and shows a warning, but profiling requires the native ext-perfbase extension.
No. Profiling is disabled by default. Traces are submitted only after you configure an API key and enable profiling.
Yes. Perfbase is a SaaS APM platform and trace submission requires a Perfbase API key.
When enabled, the plugin sends profiling traces and request metadata such as action name, HTTP method, sanitized request URL without query string, HTTP status code, user agent, user IP address, hostname, environment, WordPress version, PHP version, and selected WordPress context. See the External Services section for the full data disclosure. The key distinction is that Perfbase does not collect source code, request bodies, full POST payloads, arbitrary form fields, uploaded file contents, cookie values, PHP session data, or authorization header values.
Yes. Lower the sample rate, disable profiling for admin traffic, and narrow the include and exclude filters.