-
-
Notifications
You must be signed in to change notification settings - Fork 33.1k
v8: add cpu profile #59807
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
v8: add cpu profile #59807
Conversation
Review requested:
|
7214ba0
to
7dcb480
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #59807 +/- ##
==========================================
+ Coverage 88.26% 88.29% +0.03%
==========================================
Files 701 702 +1
Lines 206774 206940 +166
Branches 39778 39807 +29
==========================================
+ Hits 182514 182726 +212
+ Misses 16298 16220 -78
- Partials 7962 7994 +32
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rubber stamp LGTM!
I wasn't expecting the serializer to land Node.js! <3
b41c98b
to
d50d6e9
Compare
d50d6e9
to
ff0cced
Compare
const handle = v8.startCpuProfile(); | ||
const profile = handle.stop(); | ||
assert.ok(typeof profile === 'string'); | ||
assert.ok(profile.length > 0); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: a test that exercises the using
syntax would be ideal also
Refs: #59428, #59429
make -j4 test
(UNIX), orvcbuild test
(Windows) passes