From owner-freebsd-current Mon Jul 24 04:59:39 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id EAA17372 for current-outgoing; Mon, 24 Jul 1995 04:59:39 -0700 Received: from mail.barrnet.net (mail.barrnet.net [131.119.246.7]) by freefall.cdrom.com (8.6.11/8.6.6) with ESMTP id EAA17366 for ; Mon, 24 Jul 1995 04:59:37 -0700 Received: from mail.cs.tu-berlin.de (mail.cs.tu-berlin.de [130.149.17.13]) by mail.barrnet.net (8.6.10/MAIL-RELAY-LEN) with ESMTP id EAA17746 for ; Mon, 24 Jul 1995 04:59:29 -0700 Received: from caramba.cs.tu-berlin.de (wosch@caramba.cs.tu-berlin.de [130.149.144.4]) by mail.cs.tu-berlin.de (8.6.12/8.6.12) with ESMTP id NAA21435; Mon, 24 Jul 1995 13:45:15 +0200 From: Wolfram Schneider Received: (wosch@localhost) by caramba.cs.tu-berlin.de (8.6.12/8.6.9) id NAA09809; Mon, 24 Jul 1995 13:45:02 +0200 Date: Mon, 24 Jul 1995 13:45:02 +0200 Message-Id: <199507241145.NAA09809@caramba.cs.tu-berlin.de> To: "Rodney W. Grimes" Cc: current@freebsd.org, joerg_wunsch@uriah.heep.sax.de Subject: Re: New options for lastcomm(1) In-Reply-To: <199507240130.SAA17222@gndrsh.aac.dev.com> References: <199507231009.MAA01071@localhost> <199507240130.SAA17222@gndrsh.aac.dev.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: current-owner@freebsd.org Precedence: bulk Rodney W. Grimes writes: >> I use accounting as poor man's (k)trace, for debugging and >> optimization of shell/perl scripts. > >Why do that when we have ktrace in FreeBSD??? ktrace is to low level :-) ktrace.out grow rapidly. Ktrace is slow, and you must call ktrace explict. Accounting run in 'background' for all processes. I don't want know which system call start sh(1), I want see how many subshell (heavy system time) or if perl use exec instead 'sh -c'. E.g. start accounting and make world. You see thousands sh(1), test(1), cpp(1), gzip(1) etc. Wolfram