Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Enabling multiple profiling event when using JFR

Abierto
#371 0 comentarios 2 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
54/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
java

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Java
Estrellas
125
Forks
48
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de grafana/pyroscope-java

Todos los issues de grafana/pyroscope-java

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.