Closed susakin closed 5 months ago
你好 我在docker nodejs应用 里面去执行 memlab的方法, const { leaks, runResult } = await run({ scenario }); const steps = runResult.getInteractionSteps(); let memoryInfo = { leaks: JSON.stringify(leaks), heapSizeBase: steps?.[0]?.JSHeapUsedSize, heapSizeOpen: steps?.[1]?.JSHeapUsedSize, heapSizeClose: steps?.[2]?.JSHeapUsedSize, }; 他会报 Could not find Chrome (ver. 121.0.6167.85). This can occur if either
npx puppeteer browsers install chrome
your cache path is incorrectly configure
我看了之前有人提的issue 这个--chromium-binary 是不是可以解决这个问题,但是 这个命令只作用于 命令行,我翻看了 run方法的文档没有看到相关的api,英文不是很好 麻烦了
你好 我在docker nodejs应用 里面去执行 memlab的方法,
const { leaks, runResult } = await run({ scenario }); const steps = runResult.getInteractionSteps(); let memoryInfo = { leaks: JSON.stringify(leaks), heapSizeBase: steps?.[0]?.JSHeapUsedSize, heapSizeOpen: steps?.[1]?.JSHeapUsedSize, heapSizeClose: steps?.[2]?.JSHeapUsedSize, }; 他会报 Could not find Chrome (ver. 121.0.6167.85). This can occur if either
npx puppeteer browsers install chrome
) oryour cache path is incorrectly configure
我看了之前有人提的issue 这个--chromium-binary 是不是可以解决这个问题,但是 这个命令只作用于 命令行,我翻看了 run方法的文档没有看到相关的api,英文不是很好 麻烦了