Home  Easy-Code   Forum    Updater 


Not signed in (Sign In)
    • CommentAuthorbrother2
    • CommentTimeNov 27th 2010
     
    C/ C++ applications are more tend to memory issues like memory leaks and memory corruption which could not only degrade t he performance but also impact the scalability and availability of the applications and also, lead to unexpected results which are even impossible to trace back. A vital care at the design of the memory management of C/ C++ applications with the strict adherence to the usage of code review tools to identify the violation of coding standards can avoid this to a greater extent.

    Next to memory it is the CPU, we all know the C/ C++ application are less CPU intense since the code is available in almost binary and of course we have optimization level provided by the compilers which can used to improve the efficiency of the code but it has its own drawbacks, we need to understand and validate the optimization level before we use it based on the solution we are working on... General approach or tendency followed by the performance testers to improve the code is to identify the time taken by the functions and the number of function calls happening using inbuilt application tracer or by using external runtime tools. Once the times are determined the target is set and the algorithm itself is modified to choose the best performing algorithm by trail & error methods.
    • CommentAuthorbrother1
    • CommentTimeNov 27th 2010
     
    What are the run time tools available in market to know the time spent on each function from a C/ C++ application?
    • CommentAuthorbrother2
    • CommentTimeNov 27th 2010
     
    There are many tools available in market and some are integrated with IDE but following are considered to be the best for their specific platform,
    1. Caliper for HP platform
    2. Quantify part of PurifyPlus package for IBM platform
    3. DTRACE scripting on Sun