-
-
Notifications
You must be signed in to change notification settings - Fork 33.6k
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
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.45% 88.45% -0.01%
==========================================
Files 703 703
Lines 207544 207609 +65
Branches 40013 40026 +13
==========================================
+ Hits 183587 183638 +51
+ Misses 15965 15957 -8
- Partials 7992 8014 +22
🚀 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
bf4b7cf to
10b2275
Compare
|
Landed in f9fcc74 |
Refs: #59428, #59429
make -j4 test(UNIX), orvcbuild test(Windows) passes