Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Enabling multiple profiling event when using JFR

Đang mở
#371 0 bình luận 2 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
54/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java
Lĩnh vực
observability

Hướng nghiên cứu

Start with agent/src/main/java/io/pyroscope/javaagent/JFRJDKProfilerDelegate.java, especially the profiling-event switch at the linked line, and trace how JFR recordings are configured. Check whether JFR supports combining the requested CPU, allocation, and lock events without chaining recordings. Done means the library can configure multiple profiling events together, if no JFR limitation prevents it.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Hello,
in our project we are using JFR to profile our applications and we wanted to allow CPU and memory profiling at the same time.
As far as I know it should be possible to do it in JFR but I couldn't find a way to do it with the library.
So that it is clear what I mean with event, I am talking about these

EventType.CPU
EventType.ALLOC
EventType.LOCK

I see that in the class JFRJDKProfilerDelegate.java there is a switch case on the profiling event type, which make it obvious that currently it is not possible to configure this behavior.
Is there any reason or limitation behind this choice that would prevent to simply chain multiple recordings?
We might submit a contribution if there is no blocker to it but we wanted to have some more context before investing time into it.
Thank you in advance.

Ngôn ngữ chính
Java
Star
125
Fork
48
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của grafana/pyroscope-java

Tất cả issue của grafana/pyroscope-java

Issue tương tự

Thêm issue về Java

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.