From owner-freebsd-questions Sun Dec 22 19:54:31 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id TAA12543 for questions-outgoing; Sun, 22 Dec 1996 19:54:31 -0800 (PST) Received: from obie.softweyr.com (slc37.modem.xmission.com [204.228.136.37]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id TAA12531 for ; Sun, 22 Dec 1996 19:54:27 -0800 (PST) Received: (from wes@localhost) by obie.softweyr.com (8.7.5/8.6.12) id UAA00413; Sun, 22 Dec 1996 20:55:19 -0700 (MST) Date: Sun, 22 Dec 1996 20:55:19 -0700 (MST) Message-Id: <199612230355.UAA00413@obie.softweyr.com> From: Wes Peters To: bmcgover@cisco.com CC: questions@freebsd.org Subject: Profiling applications In-Reply-To: <199612201651.LAA00469@bmcgover-pc.cisco.com> References: <199612201651.LAA00469@bmcgover-pc.cisco.com> Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Brian McGovern writes: > Are there any free utilities out there for helping to profile > programs? I'm writing some code that needs to minimize CPU > utilization, and I'd like to see what functions (of mine, and of > the system's) are taking the most time, so I can make some better > code choices (using memcpy, for instance, instead of copying a > string a byte at a time in a for loop). gprof -- "it's in there!" -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC http://www.xmission.com/~softweyr softweyr@xmission.com