[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Fwd: Profiling C programs



On Fri, 2005-07-15 at 20:50 +0500, Asim Jamshed wrote:
> ---------- Forwarded message ----------
> From: michael <linux@networkingnewsletter.org.uk>
> Date: Jul 15, 2005 5:35 PM
> Subject: Re: Profiling C programs
> To: Asim Jamshed <asim.jamshed@gmail.com>
> 
> 
> see previous email.
> i don't answer personal emails
> 
> On Fri, 2005-07-15 at 15:26 +0500, Asim Jamshed wrote:
> > Command useds:
> >
> > 1> $ CFLAGS='-pg' ./configure --disable-cups --with-fhs --with-pam
> > --with-syslogs --with-utmp --with-netatalk --with-all --with-smbclient
> > --with-sendfile-support --with-profiling-data
> >
> > 2> make all
> >
> > 3> $ bin/smbd -s /etc/samba/smb.conf
> >
> > 4> After a transfer, I 'pkill' the process.
> >
> > 5> I then gprof the newly created gmon.out file:
> >
> >     $ gprof bin/smbd bin/gmon.out > profile_info


And which compiler and version?
Michael




Reply to: