Overview
OpenFin leverages the Chromium v8 Garbage Collector. This article provides information on how to log and trigger Garbage Collection.
Garbage Collection Logging
Steps
Logging GC events can be enabled by adding the following flags to the runtime arguments:
--js-flags="--trace-gc --trace-gc-verbose"
For information on how to configure Runtime arguments please see: Configuring Runtime Arguments
Enable Garbage Collection Control
Prerequisites
Runtime version 10.66.39.43 or newer
Steps
By default, it is not possible to trigger Garbage Collection (GC), this article explains how to enable control over the chromium Garbage Collection within an OpenFin application.
To enable GC control, add the following flags to the Applications Runtime Arguments:
--js-flags=\"--expose-gc --trace-gc --log-gc\"
(See Configuring Runtime Arguments for more information)
Once enable GC can be trigged by calling:
window.gc()
Comments
0 comments
Please sign in to leave a comment.