flutter / flutter/devtools

Look into memory bloat after running flutter test

Đang mở
#4,111 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
P3
Ngôn ngữ chính
Dart
Star
1.7k
Fork
404
Merge trung bình
6 ngày 17 giờ
Pull request đã merge (30 ngày)
18

Mô tả

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


Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.