Preliminary library to support profiling.
Author: Michael Hanus
Version: December 2007
| Exported names: |
Datatypes:
ProcessInfo
Constructors:
Choices
| Code
| ElapsedTime
| GarbageCollections
| Heap
| Memory
| RunTime
| Stack
Functions:
evalSpace
| evalTime
| garbageCollect
| garbageCollectorOff
| garbageCollectorOn
| getProcessInfos
| printMemInfo
| profileSpace
| profileTime
| showMemInfo
| Summary of exported functions: |
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
| Imported modules: |
| Exported datatypes: |
The data type for representing information about the state of a Curry process.
Constructors:
:: ProcessInfo
RunTime - the run time in milliseconds
:: ProcessInfo
ElapsedTime - the elapsed time in milliseconds
:: ProcessInfo
Memory - the total memory in bytes
:: ProcessInfo
Code - the size of the code area in bytes
:: ProcessInfo
Stack - the size of the local stack for recursive functions in bytes
:: ProcessInfo
Heap - the size of the heap to store term structures in bytes
:: ProcessInfo
Choices - the size of the choicepoint stack
:: ProcessInfo
GarbageCollections - the number of garbage collections performed
| Exported functions: |
:: IO [(ProcessInfo,Int)]
Returns various informations about the current state of the Curry process. Note that the returned values are very implementation dependent so that one should interpret them with care!
:: IO ()
Turns off the garbage collector of the run-time system (if possible). This could be useful to get more precise data of memory usage.
:: IO ()
Turns on the garbage collector of the run-time system (if possible).
:: IO ()
Invoke the garbage collector (if possible). This could be useful before run-time critical operations.
:: [(ProcessInfo,Int)] -> String
Get a human readable version of the memory situation from the process infos.
:: IO ()
Print a human readable version of the current memory situation of the Curry process.
:: a -> IO ()
Evaluates the argument to normal form and print the time needed for this evaluation.
:: a -> IO ()
Evaluates the argument to normal form and print the time and space needed for this evaluation. During the evaluation, the garbage collector is turned off to get the total space usage.
:: a -> a
Evaluates the argument to normal form (and return the normal form) and print the time needed for this evaluation on standard error. Included for backward compatibility only, use profileTime!
:: a -> a
Evaluates the argument to normal form (and return the normal form) and print the time and space needed for this evaluation on standard error. During the evaluation, the garbage collector is turned off. Included for backward compatibility only, use profileSpace!