File: profile.h

package info (click to toggle)
smlnj-runtime 110.44-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 2,968 kB
  • ctags: 5,368
  • sloc: ansic: 24,674; asm: 4,195; makefile: 1,353; sh: 91
file content (24 lines) | stat: -rw-r--r-- 529 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* profile.h
 *
 * COPYRIGHT (c) 1996 AT&T Research.
 */

#ifndef _PROFILE_
#define _PROFILE_

#ifndef PROFILE_QUANTUM_US
#  define PROFILE_QUANTUM_US	10000		/* profile timer quantum in uS */
#endif

extern ml_val_t	ProfCntArray;

/* Indices into the ProfCntArray for the run-time and GC; these need to
 * track the definitions in sml-nj/boot/NJ/prof-control.sml.
 */
#define PROF_RUNTIME	INT_CtoML(0)
#define PROF_MINOR_GC	INT_CtoML(1)
#define PROF_MAJOR_GC	INT_CtoML(2)
#define PROF_OTHER	INT_CtoML(3)

#endif /* _PROFILE_ */