简体   繁体   中英

How to speed up PHP Depend

I'm running PHP Depend on our code base to profile the PHP. It's a large code base, and I have been disappointed by how long it is taking to iterate through all of the files: days.

It's an internal server, but pdepend has sucked up all of the available memory and is constantly swapping. Is there a config setting I can set to get PHP Depend to dump data out of memory? Are there any suggestions on getting this to speed up?

Might I suggest a profiling tool: XHProf & XHGui . The former is a profiler you can run in production, the latter is a GUI you can use to visualize the information you've received. Since PHP Depend seems to be written in PHP it would be pretty effective at determining what the code is up to.

pDepend does scan and analysis on every line of every file of supplied paths. And it does get very slow in bigger code base. Since it runs on command line process, APC cache won't help either. One approach would be divide your code into modules with separate pDepend reports but if you use common library in all modules, reports would not be very accurate.

Latest pDepend has some performance improvements if you are using older one. http://pdepend.org/news/pdepend-1.0.0-released.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM