mamuz / PhpDependencyAnalysis

Static code analysis to find violations in a dependency graph
http://mamuz.github.io/PhpDependencyAnalysis/
MIT License
564 stars 45 forks source link

Hanging on writing to dependency graph file #27

Closed su-narthur closed 8 years ago

su-narthur commented 8 years ago

The process is repeatedly hanging on writing to the dependency graph file. This happens both with the SVG and DOT writers. Attached is a shortened php process sample (the original sample was over 600 MB).

I'm working with a large project, phpda puts it at 2520 files. The analysis itself usually takes about a minute and ends with about 90 MiB memory usage. Here's some typical output:

2520/2520 [============================] 100%  1 min/1 min  Memory: 91.5 MiB

phpda-sample-short.txt

su-narthur commented 8 years ago

Seems like size is the issue. I limited the scan to only a portion of my file and it seems to have completed successfully.

842/842 [============================] 100% 3 secs/3 secs Memory: 24.5 MiB