| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2861778 commit 4f387c2
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,7 +20,7 @@ | |||
| 20 | 20 | // USE OR OTHER DEALINGS IN THE SOFTWARE. | |
| 21 | 21 | ||
| 22 | 22 | 'use strict'; | |
| 23 | - // Flags: --max_old_space_size=32 | ||
| 23 | + // Flags: --max_old_space_size=32 --expose_gc | ||
| 24 | 24 | ||
| 25 | 25 | require('../common'); | |
| 26 | 26 | const assert = require('assert'); | |
@@ -34,6 +34,7 @@ const interval = setInterval(function() { | |||
| 34 | 34 | } catch { | |
| 35 | 35 | } | |
| 36 | 36 | ||
| 37 | + global.gc(); | ||
| 37 | 38 | const rss = process.memoryUsage.rss(); | |
| 38 | 39 | assert.ok(rss < 64 * 1024 * 1024, | |
| 39 | 40 | `memory usage: ${rss} (${Math.round(rss / (1024 * 1024))} MB)`); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments