Skip to content

feat: add trace event utils - #1215

Merged
BioPhoton merged 15 commits into
mainfrom
feat/utils/trace-format-utils
Jan 14, 2026
Merged

feat: add trace event utils#1215
BioPhoton merged 15 commits into
mainfrom
feat/utils/trace-format-utils

Conversation

@BioPhoton

@BioPhotonBioPhoton commented Jan 13, 2026

Copy link
Copy Markdown
Collaborator

Related: #1197

This PR includes:

  • bump node version of utils to 18.2.0 as of a lint error The 'perf_hooks.PerformanceMark' is still an experimental feature and is not supported until Node.js 18.2.0 (backported: ^16.17.0). The configured version range is '>=17.0.0'
  • types for trace events and file
  • utils for trace events and trace file generation
  • epoch clock API extension

@nx-cloud

nx-cloudBot commented Jan 13, 2026

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit cd33b5c

CommandStatusDurationResult
nx affected -t int-test --parallel=3✅ Succeeded1m 34sView ↗

☁️ Nx Cloud last updated this comment at 2026-01-14 18:25:20 UTC

@pkg-pr-new

pkg-pr-newBot commented Jan 13, 2026

Copy link
Copy Markdown

Open in StackBlitz

@code-pushup/ci

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/ci@1215

@code-pushup/cli

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/cli@1215

@code-pushup/core

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/core@1215

@code-pushup/create-cli

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/create-cli@1215

@code-pushup/nx-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/nx-plugin@1215

@code-pushup/models

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/models@1215

@code-pushup/axe-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/axe-plugin@1215

@code-pushup/coverage-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/coverage-plugin@1215

@code-pushup/eslint-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/eslint-plugin@1215

@code-pushup/js-packages-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/js-packages-plugin@1215

@code-pushup/jsdocs-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/jsdocs-plugin@1215

@code-pushup/lighthouse-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/lighthouse-plugin@1215

@code-pushup/typescript-plugin

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/typescript-plugin@1215

@code-pushup/utils

npm i https://pkg.pr.new/code-pushup/cli/@code-pushup/utils@1215

commit: cd33b5c

@github-actions

github-actionsBot commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

Code PushUp

🤨 Code PushUp report has both improvements and regressions – compared current commit 0f26bb6 with previous commit 7d3681c.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Categories

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Code coverage🟢 91🟢 93↑ +1.7
Documentation🔴 34🔴 35↑ +1.5
Performance🔴 37🔴 37↓ −0.4
Bug prevention🟡 75🟡 75↓ −0.1
Axe Accessibility🟡 88🟡 88↓ −0.1
Code style🟢 99🟢 99
Security🟡 51🟡 51
Updates🟡 78🟡 78
Type Safety🟡 67🟡 67
Miscellaneous🟡 67🟡 67
Accessibility🟢 92🟢 92
Best Practices🟢 100🟢 100
SEO🟢 92🟢 92
👍 2 groups improved, 👎 1 group regressed, 👍 7 audits improved, 👎 2 audits regressed, 15 audits changed without impacting score

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
Code coverageCode coverage metrics🟢 91🟢 93↑ +1.7
JSDocs coverageDocumentation coverage🔴 34🔴 35↑ +1.5
LighthousePerformance🔴 37🔴 37↓ −0.4

31 other groups are unchanged.

🛡️ Audits

🔌 Plugin🛡️ Audit📏 Previous value📏 Current value🔄 Value change
JSDocs coverageTypes coverage🟥 260 undocumented types🟥 265 undocumented types↑ +1.9 %
Code coverageLine coverage🟨 86.2 %🟩 92.8 %↑ +7.6 %
JSDocs coverageVariables coverage🟥 271 undocumented variables🟥 275 undocumented variables↑ +1.5 %
LighthouseFirst Contentful Paint🟥 3.0 s🟥 3.1 s↑ +3 %
JSDocs coverageFunctions coverage🟥 597 undocumented functions🟥 591 undocumented functions↓ −1 %
Code coverageBranch coverage🟨 87.3 %🟨 89.1 %↑ +2 %
LighthouseTime to Interactive🟥 13.0 s🟥 12.9 s↓ −1 %
LighthouseSpeed Index🟥 5.9 s🟥 5.9 s↑ +0.5 %
Code coverageFunction coverage🟩 93.4 %🟩 94.3 %↑ +0.9 %
LighthouseAvoids enormous network payloads🟩 Total size was 2,113 KiB🟩 Total size was 2,111 KiB↓ −0.1 %
LighthouseUses efficient cache policy on static assets🟨 31 resources found🟨 31 resources found↑ +0.2 %
LighthouseJavaScript execution time🟥 4.4 s🟥 4.1 s↓ −6.1 %
LighthouseReduce unused CSS🟥 Potential savings of 95 KiB🟥 Potential savings of 95 KiB↓ −25 %
LighthouseMetrics🟩 100%🟩 100%↓ −1 %
LighthouseInitial server response time was short🟩 Root document took 400 ms🟩 Root document took 510 ms↑ +27.8 %
LighthouseMinimizes main-thread work🟥 8.9 s🟥 8.8 s↓ −1.1 %
LighthouseLargest Contentful Paint🟥 11.4 s🟥 11.4 s↓ −0.4 %
LighthouseMax Potential First Input Delay🟥 1,040 ms🟥 1,080 ms↑ +3.3 %
LighthouseTotal Blocking Time🟥 1,990 ms🟥 1,970 ms↓ −1.2 %
LighthouseServer Backend Latencies🟩 1,050 ms🟩 1,070 ms↑ +1.9 %
LighthouseNetwork Round Trip Times🟩 0 ms🟩 20 ms↑ +321.5 %
JS packagesOutdated npm dev dependencies.🟨 55 outdated package versions (29 major, 19 minor, 7 patch)🟨 56 outdated package versions (29 major, 19 minor, 8 patch)↑ +1.8 %
JSDocs coverageProperties coverage🟥 24 undocumented properties🟥 23 undocumented properties↓ −4.2 %
LighthouseUser Timing marks and measures🟩 15 user timings🟩 0↓ −100 %

655 other audits are unchanged.

@github-actions

github-actionsBot commented Jan 13, 2026

Copy link
Copy Markdown
Contributor

Code PushUp

🤨 Code PushUp report has both improvements and regressions – compared current commit 0f26bb6 with previous commit 7d3681c.

💼 Project create-cli

🥳 Code PushUp report has improved.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Code coverage🟢 90🟢 96↑ +5.6

5 other categories are unchanged.

👍 1 group improved, 👍 2 audits improved

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
Code coverageCode coverage metrics🟢 90🟢 96↑ +5.6

14 other groups are unchanged.

🛡️ Audits

🔌 Plugin🛡️ Audit📏 Previous value📏 Current value🔄 Value change
Code coverageLine coverage🟨 82.5 %🟩 97 %↑ +17.7 %
Code coverageBranch coverage🟨 73.7 %🟨 87.5 %↑ +18.8 %

442 other audits are unchanged.

💼 Project utils

🥳 Code PushUp report has improved.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Documentation🔴 36🔴 40↑ +4.5
Code coverage🟢 94🟢 95↑ +0.6

4 other categories are unchanged.

👍 2 groups improved, 👍 6 audits improved, 1 audit changed without impacting score

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
JSDocs coverageDocumentation coverage🔴 36🔴 40↑ +4.5
Code coverageCode coverage metrics🟢 94🟢 95↑ +0.6

13 other groups are unchanged.

🛡️ Audits

🔌 Plugin🛡️ Audit📏 Previous value📏 Current value🔄 Value change
JSDocs coverageTypes coverage🟥 59 undocumented types🟥 64 undocumented types↑ +8.5 %
JSDocs coverageVariables coverage🟥 43 undocumented variables🟥 47 undocumented variables↑ +9.3 %
JSDocs coverageFunctions coverage🟥 246 undocumented functions🟥 240 undocumented functions↓ −2.4 %
Code coverageLine coverage🟩 93.8 %🟩 97.7 %↑ +4.2 %
Code coverageFunction coverage🟩 95.8 %🟩 96.1 %↑ +0.3 %
Code coverageBranch coverage🟩 91.8 %🟩 92.1 %↑ +0.3 %
JSDocs coverageProperties coverage🟥 24 undocumented properties🟥 23 undocumented properties↓ −4.2 %

437 other audits are unchanged.

💼 Project nx-plugin

🥳 Code PushUp report has improved.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Code coverage🟡 89🟢 91↑ +2.2

5 other categories are unchanged.

👍 1 group improved, 👍 2 audits improved

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
Code coverageCode coverage metrics🟡 89🟢 91↑ +2.2

14 other groups are unchanged.

🛡️ Audits

🔌 Plugin🛡️ Audit📏 Previous value📏 Current value🔄 Value change
Code coverageLine coverage🟨 84.8 %🟩 93.2 %↑ +9.8 %
Code coverageBranch coverage🟨 76.3 %🟨 80.8 %↑ +6 %

446 other audits are unchanged.

💼 Project plugin-jsdocs

🥳 Code PushUp report has improved.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Code coverage🟢 95🟢 97↑ +1.9

5 other categories are unchanged.

👍 1 group improved, 👍 2 audits improved

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
Code coverageCode coverage metrics🟢 95🟢 97↑ +1.9

14 other groups are unchanged.

🛡️ Audits

🔌 Plugin🛡️ Audit📏 Previous value📏 Current value🔄 Value change
Code coverageLine coverage🟩 90.5 %🟩 96 %↑ +6.1 %
Code coverageBranch coverage🟨 87.9 %🟩 92.5 %↑ +5.2 %

442 other audits are unchanged.

💼 Project cli

🥳 Code PushUp report has improved.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Code coverage🟢 92🟢 94↑ +1.4

5 other categories are unchanged.

👍 1 group improved, 👍 2 audits improved

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
Code coverageCode coverage metrics🟢 92🟢 94↑ +1.4

14 other groups are unchanged.

🛡️ Audits

🔌 Plugin🛡️ Audit📏 Previous value📏 Current value🔄 Value change
Code coverageLine coverage🟨 88.5 %🟩 94.5 %↑ +6.7 %
Code coverageBranch coverage🟨 84.2 %🟨 86.9 %↑ +3.3 %

442 other audits are unchanged.

💼 Project plugin-axe

🥳 Code PushUp report has improved.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Code coverage🟢 93🟢 94↑ +1.4

5 other categories are unchanged.

👍 1 group improved, 👍 2 audits improved

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
Code coverageCode coverage metrics🟢 93🟢 94↑ +1.4

14 other groups are unchanged.

🛡️ Audits

🔌 Plugin🛡️ Audit📏 Previous value📏 Current value🔄 Value change
Code coverageBranch coverage🟨 86.3 %🟩 90.1 %↑ +4.4 %
Code coverageLine coverage🟨 69.7 %🟨 72.2 %↑ +3.6 %

441 other audits are unchanged.

💼 Project plugin-typescript

🥳 Code PushUp report has improved.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Code coverage🟡 86🟡 87↑ +1.3

5 other categories are unchanged.

👍 1 group improved, 👍 2 audits improved

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
Code coverageCode coverage metrics🟡 86🟡 87↑ +1.3

14 other groups are unchanged.

🛡️ Audits

🔌 Plugin🛡️ Audit📏 Previous value📏 Current value🔄 Value change
Code coverageLine coverage🟩 90.7 %🟩 95.5 %↑ +5.3 %
Code coverageBranch coverage🟨 77.7 %🟨 80.2 %↑ +3.3 %

442 other audits are unchanged.

💼 Project plugin-lighthouse

🥳 Code PushUp report has improved.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Code coverage🟢 99🟢 99↑ +1

5 other categories are unchanged.

👍 1 group improved, 👍 2 audits improved

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
Code coverageCode coverage metrics🟢 99🟢 99↑ +1

14 other groups are unchanged.

🛡️ Audits

🔌 Plugin🛡️ Audit📏 Previous value📏 Current value🔄 Value change
Code coverageLine coverage🟩 97.2 %🟩 99.8 %↑ +2.7 %
Code coverageBranch coverage🟩 96.2 %🟩 98.8 %↑ +2.7 %

442 other audits are unchanged.

💼 Project models

🥳 Code PushUp report has improved.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Code coverage🟢 93🟢 94↑ +1

3 other categories are unchanged.

👍 1 group improved, 👍 2 audits improved

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
Code coverageCode coverage metrics🟢 93🟢 94↑ +1

11 other groups are unchanged.

🛡️ Audits

🔌 Plugin🛡️ Audit📏 Previous value📏 Current value🔄 Value change
Code coverageBranch coverage🟩 91.5 %🟩 94.2 %↑ +2.9 %
Code coverageLine coverage🟩 97.2 %🟩 99.4 %↑ +2.2 %

435 other audits are unchanged.

💼 Project ci

🤨 Code PushUp report has both improvements and regressions.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Code coverage🟢 92🟢 92↑ +0.9

5 other categories are unchanged.

👍 1 group improved, 👍 2 audits improved, 👎 1 audit regressed

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
Code coverageCode coverage metrics🟢 92🟢 92↑ +0.9

14 other groups are unchanged.

🛡️ Audits

🔌 Plugin🛡️ Audit📏 Previous value📏 Current value🔄 Value change
Code coverageLine coverage🟨 89.7 %🟩 94.8 %↑ +5.7 %
Code coverageBranch coverage🟨 82.4 %🟨 83.6 %↑ +1.5 %
Code coverageFunction coverage🟩 96.6 %🟩 96.6 %↓ −0.1 %

442 other audits are unchanged.

💼 Project core

🥳 Code PushUp report has improved.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Code coverage🟡 90🟢 90↑ +0.8

5 other categories are unchanged.

👍 1 group improved, 👍 2 audits improved

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
Code coverageCode coverage metrics🟡 90🟢 90↑ +0.8

14 other groups are unchanged.

🛡️ Audits

🔌 Plugin🛡️ Audit📏 Previous value📏 Current value🔄 Value change
Code coverageLine coverage🟩 91.2 %🟩 94.8 %↑ +3.9 %
Code coverageBranch coverage🟨 81.7 %🟨 83.2 %↑ +1.8 %

442 other audits are unchanged.

💼 Project plugin-coverage

🥳 Code PushUp report has improved.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Code coverage🟡 89🟢 90↑ +0.7

5 other categories are unchanged.

👍 1 group improved, 👍 2 audits improved

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
Code coverageCode coverage metrics🟡 89🟢 90↑ +0.7

14 other groups are unchanged.

🛡️ Audits

🔌 Plugin🛡️ Audit📏 Previous value📏 Current value🔄 Value change
Code coverageLine coverage🟨 85.7 %🟨 88 %↑ +2.7 %
Code coverageBranch coverage🟨 88.1 %🟨 89.6 %↑ +1.7 %

442 other audits are unchanged.

💼 Project plugin-eslint

🤨 Code PushUp report has both improvements and regressions.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Code coverage🟢 94🟢 94↑ +0.6

5 other categories are unchanged.

👍 1 group improved, 👍 2 audits improved, 👎 1 audit regressed

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
Code coverageCode coverage metrics🟢 94🟢 94↑ +0.6

14 other groups are unchanged.

🛡️ Audits

🔌 Plugin🛡️ Audit📏 Previous value📏 Current value🔄 Value change
Code coverageLine coverage🟩 92.6 %🟩 95 %↑ +2.5 %
Code coverageBranch coverage🟨 85.2 %🟨 86.5 %↑ +1.5 %
Code coverageFunction coverage🟩 98.2 %🟩 98.2 %↓ −0.1 %

441 other audits are unchanged.

💼 Project plugin-js-packages

🥳 Code PushUp report has improved.

🕵️ See full comparison in Code PushUp portal 🔍

🏷️ Category⭐ Previous score⭐ Current score🔄 Score change
Code coverage🟡 85🟡 86↑ +0.6

5 other categories are unchanged.

👍 1 group improved, 👍 2 audits improved

🗃️ Groups

🔌 Plugin🗃️ Group⭐ Previous score⭐ Current score🔄 Score change
Code coverageCode coverage metrics🟡 85🟡 86↑ +0.6

14 other groups are unchanged.

🛡️ Audits

🔌 Plugin🛡️ Audit📏 Previous value📏 Current value🔄 Value change
Code coverageBranch coverage🟩 93.3 %🟩 95 %↑ +1.8 %
Code coverageLine coverage🟨 85 %🟨 85.8 %↑ +0.9 %

442 other audits are unchanged.

@BioPhoton
BioPhoton marked this pull request as ready for review January 13, 2026 22:27
Comment threadpackages/utils/src/lib/clock-epoch.ts Outdated
Comment threadpackages/utils/src/lib/clock-epoch.unit.test.ts
Comment threadpackages/utils/src/lib/trace-file.type.ts Outdated
Comment threadpackages/utils/src/lib/trace-file-utils.ts Outdated
Comment threadpackages/utils/src/lib/trace-file-utils.ts Outdated
@BioPhoton
BioPhoton merged commit a5aa9fc into mainJan 14, 2026
35 of 36 checks passed
@BioPhoton
BioPhoton deleted the feat/utils/trace-format-utils branch January 14, 2026 18:39
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@BioPhoton@hanna-skryl