console.timeStamp(...) and performance.mark/measure are missing from the --inspect Performance Timings timeline
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 122k
- Forks
- 37.3k
- Ø Merge
- 4 T. 2 Std.
- Gemergte PRs (30 T.)
- 283
Beschreibung
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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, das Beispiel mit Node 20 und --inspect zu reproduzieren, und vergleiche dann die Zeitleiste „Performance Timings“ mit dem im Issue beschriebenen Browserverhalten. Verfolge, wie console.timeStamp, performance.mark und performance.measure für den Inspector bereitgestellt werden, und überprüfe, dass Zeitstempel, Marks und Measures in Chrome DevTools erscheinen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript
- Bereich
- devtools, performance
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 50/100