profile: Support merge of slightly different but similar Profiles.
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 20/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- go
- Lĩnh vực
- performance, tooling
Hướng nghiên cứu
Bắt đầu với profile.Merge và kiểm tra cách nó xác thực các kiểu sample, kiểu period, period, duration, time và symbolization. So sánh hai hướng được đề xuất —chuẩn hóa các profile tương thích hoặc hỗ trợ nhiều thông điệp protobuf profile— và xác định việc hoàn thành dựa trên hành vi được ghi lại và kiểm thử để kết hợp hoặc trực quan hóa các profile Go và C++.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I want a way to combine memory profiles collected by different languages on the same process. (e.g. Go and C++)
profile.Merge provides merging of multiple profile.Profiles, but the merge operation is allowed only when the Profiles contain the same types and the period type.
Go's and C++'s memory profiles have the same period type, but the sample types are different, so profile.Merge is unhappy about it.
-
Go
PeriodType: space bytes
Period: 524288
Samples: alloc_objects/count alloc_space/bytes inuse_objects/count inuse_space/bytes -
C++
PeriodType: space bytes
Period: 2097152
Samples: objects/count space/bytes[dflt]
I see two options:
-
Extend or provide a variation of profile.Merge that accepts slightly different profiles, maps sample types, and outputs the intersection.
a) Must be careful about handling of the different Periods. (may need normalization. I am afraid the current Merge doesn't do anything complex other than choosing max Period and adding up values.)
b) Handling of Duration/Time should be carefully done.
c) Also, it's possible the one profile may include symbolization info while another doesn't. Does the final output have to drop all symbols in this case? -
Extend the http endpoint or profile output format to include multiple profile proto messages, and let the pprof tool visualize and analyze the multiple profiles separately. For example, layout Go and C++ allocation graphs in separate groups, but in the same svg graph.
If the normalization required by 1) can't be done correctly, I'd prefer the option 2).
@rauls5382 @aalexand
- Ngôn ngữ chính
- Go
- Star
- 9.3k
- Fork
- 682
- Merge trung bình
- 2 ngày 4 giờ
- Pull request đã merge (30 ngày)
- 11
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của google/pprof
-
Make comments more discoverable in the web UICó thể đã có người làm @jabrailkhalil đã nhận 19 ngày trước. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
google/pprof#1029 · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 74/100
google/pprof#1020 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
pprof cannot locate source code for the list command in common Go setupsCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
google/pprof#1009 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Label with zero int64 value and no unit get dropped during decodingCó thể đã có người làm @ms-hujia đã nhận 125 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
google/pprof#1002 · 6 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 42/100
google/pprof#992 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
feat
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
ory/hydra-maester#312 · 1 reaction ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100