Outline the procedure for profiling a C/C++ program in LINUX and UNIX.

What will be an ideal response?


First of all compile your program using gcc with the -pg option. Then run the executable (this produces the gmon.out file). Now run the gprof command with the -b option and the name of the executable. This command produces the profile.

Computer Science & Information Technology

You might also like to view...

When a generic method is called,

A) the programmer must explicitly specify the actual types to use for the type parameters B) the compiler determines the actual types to use for the type parameters from the context C) the compiler uses information explicitly specified by the programmer, if available; otherwise, the type defaults to Object D) None of the above

Computer Science & Information Technology

The ________ tab contains all the tools necessary for producing tables, forms, and queries in Access

A) Database Tools B) Create C) Home D) External Data

Computer Science & Information Technology

What is the main drawback of Spelling Checker?

A) it finds all words even if not in the dictionary. B) it will change words to correctly spelled words even if they are incorrectly used. C) It doesn't find real words used incorrectly. D) It finds all errors in spelling and grammar.

Computer Science & Information Technology

One encryption method made popular by spy movies involves using the text in a book as the key to decrypt a message.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology