1MBKPS(3)                     MBK UTILITY FUNCTIONS                    MBKPS(3)
2
3
4

NAME

6       mbkps - mbk process state
7

SYNOPSIS

9       #include "mut.h"
10       void mbkps()
11

DESCRIPTION

13       mbkps  does some functions calls and gathers information about time and
14       memory spend during a program run.  encouraged.
15

EXAMPLE

17       #include "mut.h"
18       #include "mlo.h"
19       lofig_list ∗check_flat(pt)
20       lofig_list ∗pt;
21       {
22          mbkps();
23          pt = rflattenlofig(pt, YES, NO);
24          mbkps();
25          return pt;
26       }
27       that would output something like :
28       mbk stats          : 1 call
29       user     time      : 0 sec
30       system   time      : 0 sec
31       real     size      : 504 k
32       mbkalloc peak size : 68 k
33       mallinfo size      : 96 k
34       mbk stats          : 2 call
35       user     time      : 1 sec
36       system   time      : 0 sec
37       real     size      : 924 k
38       mbkalloc peak size : 2560 k
39       mallinfo size      : 512 k
40

SEE ALSO

42       mbk(1), getrusage(3), mallinfo(3V).
43
44
45
46
47
48
49ASIM/LIP6                       October 1, 1997                       MBKPS(3)
Impressum