Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tbg committed Nov 29, 2024
1 parent a229014 commit 24e21bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/driver/html/stacks.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ function stackViewer(stacks, nodes) {
}

// Update params to include src.
// When `pprof` is invoked with `-lines`, FullName will be suffixed with `:<line>`,
// which we need to remove.
let v = pprofQuoteMeta(stacks.Sources[src].FullName.replace(/:[0-9]+$/, ''));
if (param != 'f' && param != 'sf') { // old f,sf values are overwritten
// Add new source to current parameter value.
Expand Down

0 comments on commit 24e21bb

Please sign in to comment.