You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
![Supported architectures: x86-64 or ARM64][:badge-supported-arch:]
7
7
[![License][:badge-license:]][:link-license:]
8
8
@@ -34,12 +34,8 @@ It differentiates itself from other similar extensions as being:
34
34
35
35
## Requirements
36
36
37
-
Platforms support is currently quite limited. Feel free to open an issue if your platform is not supported.
38
-
Current requirements are:
39
-
40
37
* x86-64 or ARM64
41
-
***GNU/Linux**, **macOS** or **FreeBSD**
42
-
* zlib dev package (e.g. zlib1g-dev on Debian based distros)
38
+
***Linux**, **macOS**, **FreeBSD** or **Windows**
43
39
* PHP 5.4 to 8.4
44
40
45
41
## Installation
@@ -66,6 +62,12 @@ sudo make install
66
62
Then add `extension=spx.so` to your *php.ini*, or in a dedicated *spx.ini* file created within the include directory.
67
63
You may also want to override [default SPX configuration](#configuration) to be able to profile a web request, with [this one](#private-environment) for example for a local development environment.
68
64
65
+
### Windows
66
+
67
+
Windows is supported, with these extra limitations:
68
+
- live update of flat profile in CLI (`SPX_FP_LIVE=1`) is not supported.
69
+
70
+
Also, consider Windows support as still being in beta.
69
71
70
72
### ZTS PHP (multi-thread)
71
73
@@ -78,7 +80,7 @@ Also, consider ZTS PHP support as still being in beta.
78
80
79
81
### Linux, PHP-FPM & I/O stats
80
82
81
-
On GNU/Linux, SPX uses procfs (i.e. by reading files under `/proc` directory) to get some stats for the current process or thread. This is what is done under the hood when you select at least one of these metrics: `mor`, `io`, `ior` or `iow`.
83
+
On Linux, SPX uses procfs (i.e. by reading files under `/proc` directory) to get some stats for the current process or thread. This is what is done under the hood when you select at least one of these metrics: `mor`, `io`, `ior` or `iow`.
82
84
83
85
But, on most PHP-FPM setups, you will have a permission issue preventing SPX to open a file under `/proc/self` directory.
84
86
This is due to the fact that PHP-FPM master process runs as root when child processes run as another unprivileged user.
@@ -315,7 +317,7 @@ Here is the list of available metrics to collect. By default only _Wall time_ an
315
317
316
318
_\*: Allocated and freed byte counts will not be collected if you use a custom allocator or if you force the libc one through the `USE_ZEND_ALLOC` environment variable set to `0`._
317
319
318
-
_\*\*: RSS & I/O metrics are not supported on macOS and FreeBSD. On GNU/Linux you should [read this if you use PHP-FPM](#linux-php-fpm--io-stats)._
320
+
_\*\*: RSS & I/O metrics are not supported on macOS and FreeBSD. On Linux you should [read this if you use PHP-FPM](#linux-php-fpm--io-stats)._
319
321
320
322
### Command line script
321
323
@@ -504,7 +506,7 @@ See the [LICENSE][:link-license:] file for more information.
0 commit comments