Relative Content

Tag Archive for profiling

How can I profile database queries from PHP?

CodeIgniter has a very nice feature called a Profiler, which displays information at the foot of a page, information such as GET, Memory, POST data. It also shows database queries and how long they took to run which I find very useful.

Can profiling be used to verify if optimization was successful?

I know that profiling is useful to identify bottlenecks and determining what parts of the code require how much time to execute. The latter isn’t always very easy to track in the midst of other paths being executed, so once I decide what I want to optimize it might be problematic to see the improvement in numbers. This is especially true in desktop apps which run constantly and it is difficult to: execute the same path and execute it the same number of times to have reliable comparison.

Will JVisualVM degrade application performance?

I have doubts in JVisual VM profiler tool related to performance. I have requirement to implement a JVM Monitoring tool for my enterpise java application. I have gone through some profiling tools in market but all them are having some kind of agent file which we need include in server startup.

using gprof -pg flag doesn’t generate gmon.out

I have a code that is a mix of Fortran, C and R. it’s a simulation code. The backend/solver is in Fortran and C and R is used as the wrapper for creating simulation workflow and launching the process.
I would like to do some profiling using gprof so what I did is I added the relevant flags to my makefiles. Here is the structure of directories: