Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/google-chrome/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Chrome函数gc()是同步的吗?_Javascript_Google Chrome - Fatal编程技术网

Javascript Chrome函数gc()是同步的吗?

Javascript Chrome函数gc()是同步的吗?,javascript,google-chrome,Javascript,Google Chrome,我正在启动chrome64.0.3282.140,使用--expose gc标志,使用gc()函数。我只是想知道:这个函数是同步的吗 顺序词:我可以确定在这样的代码中 var memoryBeforeGC = window.performance.memory; gc(); var memoryAfterGC = window.performance.memory; gc()已完成? 如果没有:我能做什么?我应该通过超时等待多长时间

我正在启动chrome64.0.3282.140,使用
--expose gc
标志,使用
gc()
函数。我只是想知道:这个函数是同步的吗

顺序词:我可以确定在这样的代码中

var memoryBeforeGC = window.performance.memory;
gc();
var memoryAfterGC = window.performance.memory;
gc()memoryAfterGC
时,代码>已完成? 如果没有:我能做什么?我应该通过超时等待多长时间