3 * pidpersec.d - print new PIDs per sec.
4 * Written using DTrace (Solaris 10 3/05)
6 * This script prints the number of new processes created per second.
8 * $Id: pidpersec.d 3 2007-08-01 10:50:08Z brendan $
14 * TIME Time, as a string
15 * LASTPID Last PID created
16 * PID/s Number of processes created per second
20 * COPYRIGHT: Copyright (c) 2005 Brendan Gregg.
24 * The contents of this file are subject to the terms of the
25 * Common Development and Distribution License, Version 1.0 only
26 * (the "License"). You may not use this file except in compliance
29 * You can obtain a copy of the license at Docs/cddl1.txt
30 * or http://www.opensolaris.org/os/licensing.
31 * See the License for the specific language governing permissions
32 * and limitations under the License.
36 * 09-Jun-2005 Brendan Gregg Created this.
37 * 09-Jun-2005 " " Last update.
40 #pragma D option quiet
44 printf("%-22s %8s %6s\n", "TIME", "LASTPID", "PID/s");
55 printf("%-22Y %8d %6d\n", walltimestamp, `mpid, pids);