flutter / flutter/devtools

Look into memory bloat after running flutter test

未关闭
#4,111 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
P3
主要语言
Dart
星标
1.7k
派生
404
平均合并
6 天 17 小时
30 天内合并 PR
18

描述

While running
`flutter test test/`
from `packages/devtools_app`
about 40 times, and realized that my cloudtop was running out of memory.
I noticed that `devtools/packages/devtools_app/test/fixtures` had grown to 34GB

it may be worth exploring why that memory is being left behind. Kenzie had the initial idea that perhaps some test fixtures aren't properly being torn down

It looks like running `flutter clean` deletes the `.dart_tool` directory, which is the main culprit for where these files are left over.
So finding a way to document or have that happen automatically may be helpful


贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。