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...
Which Network layer protocol provides messaging that can help with troubleshooting?
a. Internet protocol (IP). b. Address Resolution Protocol (ARP). c. Reverse Address Resolution Protocol (RARP). d. Internet Control Message Protocol (ICMP).
Computer Science & Information Technology
A program with a benign capability that conceals another, sinister purpose is called a
a. hack. b. rogue. c. Trojan horse. d. virus. e. worm.
Computer Science & Information Technology