-
Notifications
You must be signed in to change notification settings - Fork 215
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
Swingset startup & benchmark plumbing for node/v8 per-vat profiling & debugging #8491
Conversation
1995bde
to
3f9f8ba
Compare
0374b46
to
4cc5873
Compare
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.
Looks great
if (profileVats.includes(vatID)) { | ||
args.push('--cpu-prof'); | ||
args.push('--cpu-prof-interval'); | ||
args.push('100'); | ||
args.push('--cpu-prof-name'); | ||
args.push(`CPU.${nameDisplayArg}.cpuprofile`); | ||
} |
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.
if (profileVats.includes(vatID)) { | |
args.push('--cpu-prof'); | |
args.push('--cpu-prof-interval'); | |
args.push('100'); | |
args.push('--cpu-prof-name'); | |
args.push(`CPU.${nameDisplayArg}.cpuprofile`); | |
} | |
if (profileVats.includes(vatID)) { | |
// cf. https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_282 | |
const fsNameDisplay = nameDisplayArg.replaceAll(':', '-').replaceAll(/[^a-z0-9._-]/gi, '_'); | |
args.push('--cpu-prof'); | |
args.push('--cpu-prof-interval'); | |
args.push('100'); | |
args.push('--cpu-prof-name'); | |
args.push(`vat-${fsNameDisplay}.cpuprofile`); | |
} |
(or similar)
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.
I think all of your doc suggestions are excellent, but I was literally seconds from tagging the PR for merge when your comments came and I'm reluctant to hold up the train at this stage (since there are a couple of other things waiting for it). So my plan is to land this now as is and incorporate your proposed doc improvements as a follow-on PR.
4cc5873
to
b680821
Compare
Closes #8490