Skip to content

perf: add toJSON to performance class - #37771

Closed
yashLadha wants to merge 1 commit into
nodejs:masterfrom
yashLadha:add_to_json_performance
Closed

perf: add toJSON to performance class#37771
yashLadha wants to merge 1 commit into
nodejs:masterfrom
yashLadha:add_to_json_performance

Conversation

@yashLadha

Copy link
Copy Markdown
Contributor

Added toJSON method to the InternalPerformance class as per the
convention followed in other performance classes and per the spec:
https://www.w3.org/TR/hr-time/#tojson-method

Fixes: #37623

@nodejs-github-botnodejs-github-bot added needs-ci PRs that need a full CI run. perf_hooks Issues and PRs related to the implementation of the Performance Timing API. labels Mar 16, 2021
@jasnell

Copy link
Copy Markdown
Member

This should include a test

Comment threadlib/perf_hooks.js Outdated
@yashLadha

Copy link
Copy Markdown
ContributorAuthor

This should include a test

Yes will be adding it.

@yashLadha
yashLadhaforce-pushed the add_to_json_performance branch 2 times, most recently from 551aa74 to 5647f64CompareMarch 17, 2021 00:47
@yashLadha

Copy link
Copy Markdown
ContributorAuthor

Added test @jasnell

@yashLadha
yashLadhaforce-pushed the add_to_json_performance branch 4 times, most recently from a439e79 to 93ca72eCompareMarch 17, 2021 01:49
Comment threadlib/perf_hooks.js Outdated
Comment threaddoc/api/perf_hooks.md Outdated
@yashLadha
yashLadhaforce-pushed the add_to_json_performance branch 2 times, most recently from 27a066c to 73e6da2CompareMarch 23, 2021 06:33
Comment threadlib/perf_hooks.js Outdated
Comment threadlib/perf_hooks.js Outdated
Added toJSON method to the InternalPerformance class as per the
convention followed in other performance classes and per the spec:
https://www.w3.org/TR/hr-time/#tojson-methodFixes: nodejs#37623
@jasnelljasnell added the author ready PRs that have at least one approval, no pending requests for changes, and a CI started. label Apr 28, 2021
@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot

This comment has been minimized.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

nodejs-github-bot commented Apr 30, 2021

Copy link
Copy Markdown
Collaborator

@jasnell

Copy link
Copy Markdown
Member

Landed in 93f0b4d

@jasnelljasnell closed this Apr 30, 2021
jasnell pushed a commit that referenced this pull request Apr 30, 2021
Added toJSON method to the InternalPerformance class as per the
convention followed in other performance classes and per the spec:
https://www.w3.org/TR/hr-time/#tojson-methodFixes: #37623
PR-URL: #37771Fixes: #37623
Reviewed-By: James M Snell <jasnell@gmail.com>
targos pushed a commit that referenced this pull request May 3, 2021
Added toJSON method to the InternalPerformance class as per the
convention followed in other performance classes and per the spec:
https://www.w3.org/TR/hr-time/#tojson-methodFixes: #37623
PR-URL: #37771Fixes: #37623
Reviewed-By: James M Snell <jasnell@gmail.com>
@targostargos mentioned this pull request May 3, 2021
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.needs-ciPRs that need a full CI run.perf_hooksIssues and PRs related to the implementation of the Performance Timing API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Performance should have a toJSON method

5 participants

@yashLadha@jasnell@nodejs-github-bot@targos@himself65