, . .
Since you are not working in an IDE, you can use pstack or lsstack to get stack samples. If the application uses a lot more time than it should, then most likely the problem is one or more calls to the rogue function, which will be clearly visible on most samples of the stack.
source
share