Skip to content

Commit

Permalink
Merge pull request #8764 from Agoric/8647-benchmark-kernel-cleanup
Browse files Browse the repository at this point in the history
Clean up minor issues found during benchmark writeup
  • Loading branch information
mergify[bot] authored Jan 22, 2024
2 parents 01baa28 + 100922b commit 6b07a7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/SwingSet/src/controller/startNodeSubprocess.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function makeStartSubprocessWorkerNode(
if (profileVats.includes(vatID)) {
args.push('--cpu-prof');
args.push('--cpu-prof-interval');
args.push('100');
args.push('1');
args.push('--cpu-prof-name');
// cf. https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_282
nameDisplayArg = nameDisplayArg
Expand Down
3 changes: 2 additions & 1 deletion packages/SwingSet/src/lib/kdebug.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ export function legibilizeValue(val, slots, smallcaps) {
return rest;
case '$':
case '&': {
const idx = Number(rest.slice(0, rest.indexOf('.')));
const end = rest.indexOf('.');
const idx = Number(rest.slice(0, end < 0 ? rest.length : end));
return `@${slots[idx]}`;
}
default:
Expand Down

0 comments on commit 6b07a7b

Please sign in to comment.