Memory debugging are missing lots of features from Observatory
- 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ả
The "Allocation Profile" option on Observatory is, I think, being replaced by "Memory" in devtools.
Right of the bat I am missing details about new and old heap, and internal vs external memory. I seemingly have to download the CSV file to get that info.
Next of I can no longer press any of the classes to get a detailed view (let alone go from there).
I answered something similar in the questionnaire that was given out some time ago (might have been years at this point, I'm not sure), but I'll repeat it here.
When debugging memory issues I often do this:
- Open observatory.
- Go to "Allocation Profile" and find the class. Click it.
- Use one of the "strongly reachable", "all direct instances", "all instances of subclasses" or "all instances of implementors" options.
- Click the resulting list, either going through it by hand (again clicking on the actual instances etc) and/or performing expression evaluations on the list.
- Open two or more instances in a new tab so I can visually compare them by tabbing back-and-forth.
- Use the "Retaining path" and "Inbound references" feature on instances.
Seemingly _none_ of this is possible though devtools. (and if it is I can't find it).
More advanced I've also hacked together scripts that could find interesting instances, I could then print their id and go to observatory for a visual of this instance (and again for instance use the "Retaining path" features etc) by changing the url for another instance (changing the (e.g.) "&objectId=objects%2F6661" part).
Can I please have this functionality back?
/cc @bkonyi @kenzieschmoll
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu trong chế độ xem Memory của DevTools và so sánh với Allocation Profile của Observatory, sử dụng danh sách trong issue về các chi tiết heap còn thiếu, điều hướng lớp, truy vấn instance, đánh giá biểu thức, tab, retaining path và các tham chiếu đến. Trước tiên, kiểm tra đầu ra CSV và việc điều hướng instance/object hiện tại. Hoàn thành có nghĩa là các workflow gỡ lỗi bộ nhớ được yêu cầu có sẵn trong DevTools thay vì yêu cầu Observatory hoặc thay đổi URL.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- dart
- Lĩnh vực
- devtools, performance
- Loại issue
- Tính năng
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 20/100