Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
MBKPS(3)		     MBK UTILITY FUNCTIONS		      MBKPS(3)

NAME
       mbkps - mbk process state

SYNOPSYS
       #include	"mut.h"
       void mbkps()

DESCRIPTION
       mbkps does some functions calls and gathers informations	about time and
       memory spend during a program run.  encouraged.

EXAMPLE
       #include	"mut.h"
       #include	"mlo.h"
       lofig_list *check_flat(pt)
       lofig_list *pt;
       {
	  mbkps();
	  pt = rflattenlofig(pt, YES, NO);
	  mbkps();
	  return pt;
       }
       that would output something like	:
       mbk stats	  : 1 call
       user	time	  : 0 sec
       system	time	  : 0 sec
       real	size	  : 504	k
       mbkalloc	peak size : 68 k
       mallinfo	size	  : 96 k
       mbk stats	  : 2 call
       user	time	  : 1 sec
       system	time	  : 0 sec
       real	size	  : 924	k
       mbkalloc	peak size : 2560 k
       mallinfo	size	  : 512	k

SEE ALSO
       mbk(1), getrusage(3), mallinfo(3V).

ASIM/LIP6			October	1, 1997			      MBKPS(3)

NAME | SYNOPSYS | DESCRIPTION | EXAMPLE | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=mbkps&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help