BSD 4_1_snap release
[unix-history] / usr / src / cmd / lisp / franz / lamp.c
CommitLineData
4b9ccde7
C
1static char *sccsid = "@(#)lamp.c 35.1 5/6/81";
2
ea2f6e9b
BJ
3#include "global.h"
4
5#define PBUFSZ 100000
6short pbuf[PBUFSZ];
7
8/* data space for fasl to put counters */
9int mcounts[NMCOUNT];
10int mcountp = (int) mcounts;
11int doprof = TRUE;
12
13lispval
14Lmonitor()
15{
16 extern etext, countbase;
17
18 if (np==lbot) { monitor(0); countbase = 0; }
19 else if (TYPE(lbot->val)==INT)
20 { monitor(2, lbot->val->i, pbuf, 200000, 7000);
21 countbase = ((int)pbuf) +12;
22 }
23 else {
24 monitor(2, sbrk(0), pbuf, 200000, 7000);
25 countbase = ((int)pbuf) + 12; }
26 return(tatom);
27}