Skip to content

Add perf_hooks module externs and global performance - #216

Merged
kevinresol merged 4 commits into
HaxeFoundation:masterfrom
kevinresol:feat/perf-hooks
Jul 14, 2026
Merged

Add perf_hooks module externs and global performance#216
kevinresol merged 4 commits into
HaxeFoundation:masterfrom
kevinresol:feat/perf-hooks

Conversation

@kevinresol

Copy link
Copy Markdown
Contributor

Summary

  • Add js.node.PerfHooks (@:jsRequire("perf_hooks")) with performance, constants, createHistogram, monitorEventLoopDelay, eventLoopUtilization, and timerify
  • Add classes under js.node.perf_hooks: Performance, entry/observer/resource timing types, and Histogram / IntervalHistogram / RecordableHistogram
  • Wire global performance on js.Node via Syntax.code("performance"), typed as js.node.perf_hooks.Performance

Test plan

Made with Cursor

kevinresol and others added 4 commits July 13, 2026 23:55
Expose Node.js performance measurement APIs under js.node.PerfHooks /
js.node.perf_hooks and add the global performance getter on js.Node.

Co-authored-by: Cursor <cursoragent@cursor.com>
Drop the unused PerformanceObserver module re-export and resolve
PerformanceMarkOptions/PerformanceMeasureOptions across modules.

Co-authored-by: Cursor <cursoragent@cursor.com>
Mark eventLoopUtilization and timerify as Added in v24.12.0 and prefer Performance methods on Node 22.

Co-authored-by: Cursor <cursoragent@cursor.com>
@kevinresol
kevinresol merged commit c0e3eef into HaxeFoundation:master Jul 14, 2026
10 checks passed
@kevinresol
kevinresol deleted the feat/perf-hooks branch July 15, 2026 01:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant