[Dev] Performance Profiler

Brent Verner dev@trilug.org
Tue, 8 Jan 2002 16:21:32 -0500


[2002-01-08 00:41] M. Mueller/bhu5nji said:
| On Tuesday 08 January 2002 12:32 pm, you wrote:
| > > b.
| >
| > ping will give round trip times. Are you sending the packets over a PPP
| > connection via modem?  Typical ping's on a modem connection are usually
| > several hundred milliseconds.
| 
| The V.35 is SS7 on DDS 56kb/s - definitely not pingable.
| 
| >
| > I've used snoop on Sun boxen and seem to remember getting timestamps from
| > it. tcpdump may be able to retrieve same.
| 
| I'll check snoop.  Ethereal (which I am using) is a glorified tcpdump (I 
| think).
| 
| I'm thinking more along the lines of profiling what's going on inside the box.


compile your prog with 'gcc -pg ...'.  When you run the prog, a
gmon.out file will be created, which can processed by gprof to list
called routines, and time spent in routines.

$ gcc -g -pg src.c -o exe
$ ./exe
$ gprof exe gmon.out


hth.
  b

| Thanks for the hints
| Mike
| _______________________________________________
| Dev mailing list
| Dev@trilug.org
| http://www.trilug.org/mailman/listinfo/dev

-- 
"Develop your talent, man, and leave the world something. Records are 
really gifts from people. To think that an artist would love you enough
to share his music with anyone is a beautiful thing."  -- Duane Allman