GC
| Module | ejs.sys |
| Namespace | "ejs.sys" |
| Definition | class GC |
| Specified | Ejs-11. |
| Inheritance | GC Object |
Garbage collector control class.
Singleton class to control operation of the Ejscript garbage collector.
Properties
| Qualifiers | Property | Type | Description |
|---|---|---|---|
| No properties defined | |||
GC Methods
| Qualifiers | Method |
|---|---|
| public get | allocatedMemory(): Number |
| public get | enabled(): Boolean |
| Test if the garbage collector is enabled. | |
| public set | enabled(on: Boolean): Void |
| Enable or disable the garbage collector. | |
| public get | maxMemory(): Number |
| public set | maxMemory(limit: Number): Void |
| public get | peakMemory(): Number |
| public static | printStats(): Void |
| public static | run(deep: Boolean): Void |
| Run the garbage collector and reclaim memory allocated to objects and properties that are no longer reachable. | |
| public get | workQuota(): Number |
| Get the quota of work to perform before the GC will be invoked. | |
| public set | workQuota(quota: Number): Void |
| Set the quota of work to perform before the GC will be invoked. |
Method Detail
get public allocatedMemory(): Number