Commit | Line | Data |
---|---|---|
7f918cf1 CE |
1 | (* Copyright (C) 1999-2008 Henry Cejtin, Matthew Fluet, Suresh |
2 | * Jagannathan, and Stephen Weeks. | |
3 | * Copyright (C) 1997-2000 NEC Research Institute. | |
4 | * | |
5 | * MLton is released under a BSD-style license. | |
6 | * See the file MLton-LICENSE for details. | |
7 | *) | |
8 | ||
9 | signature MLTON_GC = | |
10 | sig | |
11 | val collect: unit -> unit | |
12 | val pack: unit -> unit | |
13 | val setMessages: bool -> unit | |
14 | val setSummary: bool -> unit | |
15 | val unpack: unit -> unit | |
16 | ||
17 | (* Most meaningful immediately after 'collect()'. *) | |
18 | structure Statistics : | |
19 | sig | |
20 | val bytesAllocated: unit -> IntInf.int | |
21 | val lastBytesLive: unit -> IntInf.int | |
22 | val numCopyingGCs: unit -> IntInf.int | |
23 | val numMarkCompactGCs: unit -> IntInf.int | |
24 | val numMinorGCs: unit -> IntInf.int | |
25 | val maxBytesLive: unit -> IntInf.int | |
26 | end | |
27 | end |