Uh oh!
There was an error while loading. Please reload this page.
src: refactor V8ProfilerConnection to be more reusable - #27475
src: refactor V8ProfilerConnection to be more reusable#27475joyeecheung wants to merge 3 commits into
Conversation
- Process and store --cpu-prof-dir and --cpu-prof-name during Environment creation - Start profilers in on `profiler::StartProfilers()`
Now the subclasses only need to override methods to - Get the profile node from the profiler response message object - Return the directory and file path And the V8ProfilerConnection() would handle the rest of profile serialization and message parsing. This makes it easier to add other types of profiles in the future.
nodejs-github-bot
commented
Apr 29, 2019
nodejs-github-bot
commented
Apr 29, 2019
nodejs-github-bot
commented
Apr 29, 2019
bnoordhuis
left a comment
There was a problem hiding this comment.
The first commit log has an extraneous "on" in "Start profilers in on profiler::StartProfilers()".
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
nodejs-github-bot
commented
May 1, 2019
Fixed punctuation of comments and left some TODOs for @bnoordhuis 's reviews.
Oops, I meant |
nodejs-github-bot
commented
May 1, 2019
Landed in 6f02f15...58ba952 with the comment about |
Now the subclasses only need to override methods to - Get the profile node from the profiler response message object - Return the directory and file path And the V8ProfilerConnection() would handle the rest of profile serialization and message parsing. This makes it easier to add other types of profiles in the future. PR-URL: #27475 Refs: #27421 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Now the subclasses only need to override methods to - Get the profile node from the profiler response message object - Return the directory and file path And the V8ProfilerConnection() would handle the rest of profile serialization and message parsing. This makes it easier to add other types of profiles in the future. PR-URL: #27475 Refs: #27421 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
src: refactor profile initialization
Environment creation
profiler::StartProfilers()src: refactor V8ProfilerConnection to be more reusable
Now the subclasses only need to override methods to
And the V8ProfilerConnection() would handle the rest of profile
serialization and message parsing. This makes it easier to
add other types of profiles in the future.
Refs: #27421
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes