IBM i developers now have an alternative to proprietary data visualization tools to pinpoint potential bottlenecks in PHP and Node.js code.
Seiden Group recently contributed enhancements to the QCachegrind project, including installers for Windows and Mac. Our free QCachegrind downloads let developers visualize profiling data from any open source application that supports its data format, including those written in PHP, Node.js, and Python.
PHP developers will use QCachegrind in conjunction with PHP’s Xdebug extension, which generates raw debugging and profiling data. QCachegrind turns Xdebug’s output into easy-to-use graphical representations so developers can quickly see and fix potential problems. The graphics highlight which parts of the programs take the most time to execute, use the most memory, and get called most often.
QCachegrind also illustrates the flow of your code in useful ways. For example, it highlights slow “hot paths.” Some hot paths, such as database calls, are unavoidable. Often, however, developers can simplify or reduce the number of times they call less critical hot path functions, once they know about them.