console.timeStamp(...) and performance.mark/measure are missing from the --inspect Performance Timings timeline
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- JavaScript
- Estrellas
- 122k
- Forks
- 37.3k
- Merge medio
- 4 d 2 h
- PR fusionados (30 d)
- 283
Descripción
Version
20
Platform
No response
Subsystem
No response
What steps will reproduce the bug?
console.profile()
console.timeStamp('Start Rendering')
performance.mark("Start rendering")
function createArr() {
return new Array(10000).join('x')
}
for (var i=0; i< 1000;i++) {
createArr()
}
performance.mark("Finish rendering")
performance.measure("Rendering", "Start rendering", "Finish rendering")
console.timeStamp('Finish Rendering')
console.profileEnd()
How often does it reproduce? Is there a required condition?
No response
What is the expected behavior? Why is that the expected behavior?
-
Per the node docs on
console.timeStamp(...)with the--inspectflag enabled, I should be able to see the timestamp indicated on the performance tab. -
The User Timings API,
performance.mark, andperformance.measureshow up as "Timings" in the browser's Chrome Dev Tools, but does not show up in node.
What do you see instead?
I don't see any User Timings API calls on the performance timeline.

When using the same performance.* methods in the browser I see them show up in the Performance Timeline.
Additional information
No response
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza reproduciendo el ejemplo con Node 20 y --inspect; después, compara la línea de tiempo de Performance Timings con el comportamiento del navegador descrito en el issue. Rastrea cómo se exponen console.timeStamp, performance.mark y performance.measure al inspector y verifica que las marcas de tiempo, las marcas y las medidas aparecen en Chrome DevTools.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript
- Área
- devtools, performance
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Activo
- Claridad
- Bastante claro
- Aptitud para principiantes
- 50/100