Skip to content

Commit c0c73c8

Browse files
authored
Merge pull request #98 from drbyte/patch-1
Update README.md
2 parents 895e2f8 + 6e67948 commit c0c73c8

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ PHP Meminfo is a PHP extension that gives you insights on the PHP memory content
44

55
Its main goal is to help you understand memory leaks: by looking at data present in memory, you can better understand your application behaviour.
66

7-
One of the main source of inspiration for this tool is the Java jmap tool with the -histo option (see `man jmap`).
7+
One of the main sources of inspiration for this tool is the Java jmap tool with the -histo option (see `man jmap`).
88

99
![Travis CI Results](https://travis-ci.org/BitOne/php-meminfo.svg?branch=master)
1010

@@ -150,7 +150,7 @@ The reference path is the path between a specific item in memory (identified by
150150
pointer address) and all the intermediary items up to the one item that is attached
151151
to a variable still alive in the program.
152152

153-
This path shows who are the items responsible for the memory leak of the specific item
153+
This path shows which items are responsible for the memory leak of the specific item
154154
provided.
155155

156156
```bash
@@ -219,8 +219,8 @@ Path from 0x7f94a1856260
219219
+---------------------------+
220220
```
221221

222-
A worflow to find and understand memory leak by using PHP Meminfo
223-
-----------------------------------------------------------------
222+
A workflow to find and understand memory leaks using PHP Meminfo
223+
----------------------------------------------------------------
224224

225225
[Hunting down memory leaks](doc/hunting_down_memory_leaks.md)
226226

@@ -234,12 +234,12 @@ Provides aggregated data about memory usage by functions. Far less resource inte
234234

235235
Troubleshooting
236236
---------------
237-
## "A lot of memory usage is reported by the `memory_usage` entry, but the cumulative size of the items in the summary is far lower that the memory usage"
237+
## "A lot of memory usage is reported by the `memory_usage` entry, but the cumulative size of the items in the summary is far lower than the memory usage"
238238

239239
A lot of memory is used internally by the Zend Engine itself to compile PHP files, to run the virtual machine, to execute the garbage collector, etc... Another part of the memory is usually taken by PHP extensions themselves. And the remaining memory usage comes from the PHP data structures from your program.
240240

241-
In some case, several hundred of megabytes can be used internally by some PHP extensions. A good example are the PDO extension and MySQLi extension.
242-
By default, when executing a SQL query, they will buffer all the results inside the PHP memory:
241+
In some cases, several hundred megabytes can be used internally by some PHP extensions. Examples are the PDO extension and MySQLi extension.
242+
By default, when executing a SQL query they will buffer all the results inside the PHP memory:
243243
http://php.net/manual/en/mysqlinfo.concepts.buffering.php
244244

245245
In case of very large number of results, this will consume a lot of memory, and this memory usage is not caused by the data you have in your objects or array manipulated by your program, but by the way the extension works.
@@ -253,15 +253,15 @@ But PHP Meminfo is only able to get information on memory used by the data struc
253253
Hence the difference between those numbers, which can be quite big.
254254

255255
## "Call to undefined function" when calling `meminfo_dump`
256-
It certainly means the extension is not enabled.
256+
This means the extension is not enabled.
257257

258258
Check the PHP Info output and look for the MemInfo data.
259259

260260
To see the PHP Info output, just create a page calling the `phpinfo();` function, and load it from your browser, or call `php -i` from the command line.
261261

262262
## Why most tests are "skipped"?
263263

264-
While doing a `make test`, some test will need JSON capabilities. But The
264+
While doing a `make test`, some tests will need JSON capabilities. But the
265265
compilation system generates a clean env by removing all configuration
266266
directives that load extensions.
267267
So if JSON capabilites are packaged as a separate extension (instead of
@@ -274,7 +274,7 @@ command, by providing the `php` executable:
274274
$ TEST_PHP_EXECUTABLE=/usr/bin/php php run-tests.php
275275

276276
```
277-
In this case, your tests will run with your local PHP configuration,
277+
In this case your tests will run with your local PHP configuration,
278278
including the loading of the JSON extension.
279279

280280
Credits

0 commit comments

Comments
 (0)