GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Reland workaround for perf-basic-prof filename truncation issue by ofrobots · Pull Request #3520 · nodejs/node

Conversation

@ofrobots

@ofrobots ofrobots commented Oct 26, 2015

Copy link
Copy Markdown
Contributor

This is a proposed reland of #3165 onto v4.x (EDIT: and v5.x and master). The patch abates
the truncation of script filenames in the perf-event output produced by V8. This greatly improves ability to work with perf profiles. This would be very useful to have in v4.x.

V8 commits:
Original: v8/v8@03ef3cd
Reland: v8/v8@010897c

R=@bnoordhuis, @nodejs/lts

Original commit message:
improve perf_basic_prof filename reporting

The buffer used for appending filenames to the string printed to the
perf_basic_prof log was unnecessarily too small. Bump it up to be at least
kUtf8BufferSize.

Truncation of filenames makes it really hard to work with profiles gathered on
Node.js. Because of the way Node.js works, you can have node module dependencies
in deeply nested directories. The last thing you want when investigating a
performance problem is to have script names be truncated.

This patch is a stop-gap. Ideally, I want no truncation of the filename at all
and use a dynamically growing buffer. That would be a larger change, and I
wanted to have a quick fix available that can be back-ported to Node.js LTS
release.

R=[email protected],[email protected]
BUG=

Review URL: https://codereview.chromium.org/1388543002

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ofrobots
deps: backport 010897c from V8 upstream
d1839c3
This is a reland of nodejs#3165. The patch abates
the truncation of script filenames in the perf-event output produced by V8.

V8 commits:
Original: v8/v8@03ef3cd
Reland: v8/v8@010897c

Original commit message:
  improve perf_basic_prof filename reporting

  The buffer used for appending filenames to the string printed to the
  perf_basic_prof log was unnecessarily too small. Bump it up to be at least
  kUtf8BufferSize.

  Truncation of filenames makes it really hard to work with profiles gathered on
  Node.js. Because of the way Node.js works, you can have node module dependencies
  in deeply nested directories. The last thing you want when investigating a
  performance problem is to have script names be truncated.

  This patch is a stop-gap. Ideally, I want no truncation of the filename at all
  and use a dynamically growing buffer. That would be a larger change, and I
  wanted to have a quick fix available that can be back-ported to Node.js LTS
  release.

  [email protected],[email protected]
  BUG=

  Review URL: https://codereview.chromium.org/1388543002
@mscdex mscdex added the v8 engine Issues and PRs related to the V8 dependency. label Oct 26, 2015
@bnoordhuis

bnoordhuis commented Oct 26, 2015

Copy link
Copy Markdown
Member

LGTM

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jasnell

jasnell commented Oct 26, 2015

Copy link
Copy Markdown
Member

@ofrobots ... can you please retarget this to land in v4.x-staging. We're trying to avoid landing commits directly into v4.x until it's time to actually cut a new LTS release. /cc @nodejs/lts

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jasnell jasnell added lts-watch-v4.x labels Oct 26, 2015
@ofrobots

ofrobots commented Oct 26, 2015

Copy link
Copy Markdown
Contributor Author

CI: https://ci.nodejs.org/job/node-test-pull-request/622/.
@jasnell Acknowledged.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ofrobots

ofrobots commented Oct 27, 2015

Copy link
Copy Markdown
Contributor Author

The fix was upstream merged into V8-4.7 only: https://code.google.com/p/v8/issues/detail?id=4517. This means this needs to land onto master (V8-4.6) as well. I am going to retarget this PR to land on master, and I will let @jasnell cherry-pick to v4.x-staging and v4.x.

CI for master: https://ci.nodejs.org/job/node-test-pull-request/635

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@ofrobots

ofrobots commented Oct 28, 2015

Copy link
Copy Markdown
Contributor Author

CI against master, launched properly this time: https://ci.nodejs.org/job/node-test-commit/1003/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

ofrobots added a commit that referenced this pull request Oct 28, 2015
@ofrobots
deps: backport 010897c from V8 upstream
81f6b54
This is a reland of #3165. The patch abates
the truncation of script filenames in the perf-event output produced by V8.

V8 commits:
Original: v8/v8@03ef3cd
Reland: v8/v8@010897c

Original commit message:
  improve perf_basic_prof filename reporting

  The buffer used for appending filenames to the string printed to the
  perf_basic_prof log was unnecessarily too small. Bump it up to be at least
  kUtf8BufferSize.

  Truncation of filenames makes it really hard to work with profiles gathered on
  Node.js. Because of the way Node.js works, you can have node module dependencies
  in deeply nested directories. The last thing you want when investigating a
  performance problem is to have script names be truncated.

  This patch is a stop-gap. Ideally, I want no truncation of the filename at all
  and use a dynamically growing buffer. That would be a larger change, and I
  wanted to have a quick fix available that can be back-ported to Node.js LTS
  release.

  [email protected],[email protected]
  BUG=

  Review URL: https://codereview.chromium.org/1388543002

PR-URL: #3520
Reviewed-By: bnoordhuis - Ben Noordhuis <[email protected]>
@ofrobots

ofrobots commented Oct 28, 2015

Copy link
Copy Markdown
Contributor Author

Landed in 81f6b54 on master. @jasnell, @rvagg This can be cherry-picked over to v4.x and v5.x.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jasnell jasnell mentioned this pull request Oct 28, 2015
Preparing v4.2.2 LTS Maintenance nodejs/Release#50
Closed
ofrobots added a commit that referenced this pull request Oct 28, 2015
@ofrobots @jasnell
deps: backport 010897c from V8 upstream
77511eb
This is a reland of #3165. The patch abates
the truncation of script filenames in the perf-event output produced by V8.

V8 commits:
Original: v8/v8@03ef3cd
Reland: v8/v8@010897c

Original commit message:
  improve perf_basic_prof filename reporting

  The buffer used for appending filenames to the string printed to the
  perf_basic_prof log was unnecessarily too small. Bump it up to be at least
  kUtf8BufferSize.

  Truncation of filenames makes it really hard to work with profiles gathered on
  Node.js. Because of the way Node.js works, you can have node module dependencies
  in deeply nested directories. The last thing you want when investigating a
  performance problem is to have script names be truncated.

  This patch is a stop-gap. Ideally, I want no truncation of the filename at all
  and use a dynamically growing buffer. That would be a larger change, and I
  wanted to have a quick fix available that can be back-ported to Node.js LTS
  release.

  [email protected],[email protected]
  BUG=

  Review URL: https://codereview.chromium.org/1388543002

PR-URL: #3520
Reviewed-By: bnoordhuis - Ben Noordhuis <[email protected]>
@jasnell

jasnell commented Oct 28, 2015

Copy link
Copy Markdown
Member

Landed in v4.x-staging in 77511eb

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jasnell jasnell removed the lts-watch-v4.x label Oct 28, 2015
@targos targos closed this Oct 28, 2015
rvagg pushed a commit to rvagg/io.js that referenced this pull request Oct 29, 2015
@ofrobots @rvagg
deps: backport 010897c from V8 upstream
0a43697
This is a reland of nodejs#3165. The patch abates
the truncation of script filenames in the perf-event output produced by V8.

V8 commits:
Original: v8/v8@03ef3cd
Reland: v8/v8@010897c

Original commit message:
  improve perf_basic_prof filename reporting

  The buffer used for appending filenames to the string printed to the
  perf_basic_prof log was unnecessarily too small. Bump it up to be at least
  kUtf8BufferSize.

  Truncation of filenames makes it really hard to work with profiles gathered on
  Node.js. Because of the way Node.js works, you can have node module dependencies
  in deeply nested directories. The last thing you want when investigating a
  performance problem is to have script names be truncated.

  This patch is a stop-gap. Ideally, I want no truncation of the filename at all
  and use a dynamically growing buffer. That would be a larger change, and I
  wanted to have a quick fix available that can be back-ported to Node.js LTS
  release.

  [email protected],[email protected]
  BUG=

  Review URL: https://codereview.chromium.org/1388543002

PR-URL: nodejs#3520
Reviewed-By: bnoordhuis - Ben Noordhuis <[email protected]>
@rvagg rvagg mentioned this pull request Oct 29, 2015
Release proposal: v5.0.0 #3466
Merged
ofrobots added a commit that referenced this pull request Oct 29, 2015
@ofrobots @jasnell
deps: backport 010897c from V8 upstream
a6469e9
This is a reland of #3165. The patch abates
the truncation of script filenames in the perf-event output produced by V8.

V8 commits:
Original: v8/v8@03ef3cd
Reland: v8/v8@010897c

Original commit message:
  improve perf_basic_prof filename reporting

  The buffer used for appending filenames to the string printed to the
  perf_basic_prof log was unnecessarily too small. Bump it up to be at least
  kUtf8BufferSize.

  Truncation of filenames makes it really hard to work with profiles gathered on
  Node.js. Because of the way Node.js works, you can have node module dependencies
  in deeply nested directories. The last thing you want when investigating a
  performance problem is to have script names be truncated.

  This patch is a stop-gap. Ideally, I want no truncation of the filename at all
  and use a dynamically growing buffer. That would be a larger change, and I
  wanted to have a quick fix available that can be back-ported to Node.js LTS
  release.

  [email protected],[email protected]
  BUG=

  Review URL: https://codereview.chromium.org/1388543002

PR-URL: #3520
Reviewed-By: bnoordhuis - Ben Noordhuis <[email protected]>
@jasnell jasnell mentioned this pull request Oct 29, 2015
Release Proposal: v4.2.2 "Argon" (LTS) #3588
Closed
@jasnell jasnell removed the land-on-v4.x label Nov 3, 2015
@ofrobots
ofrobots deleted the perf-filename-truncation branch November 5, 2015 19:23
@bnoordhuis bnoordhuis mentioned this pull request Dec 17, 2015
deps: backport 03ef3cd from V8 upstream #3165
Closed
@bnoordhuis

bnoordhuis commented Dec 17, 2015

Copy link
Copy Markdown
Member

Landed in v4.x-staging in 77511eb

It looks like the actual commit is a6469e9; 77511eb appears to be an orphan.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@aliscco aliscco mentioned this pull request Feb 11, 2024
[Snyk] Security upgrade lerna from 3.22.1 to 6.5.0 aliscco/alisco-node#1233
Open
@B020239 B020239 mentioned this pull request Mar 9, 2024
[Snyk] Upgrade esbuild from 0.19.5 to 0.20.0 B020239/node#1
Open
@aliscco aliscco mentioned this pull request Mar 23, 2024
[Snyk] Security upgrade lerna from 3.22.1 to 6.5.0 aliscco/alisco-node#1267
Open
@aliscco aliscco mentioned this pull request May 14, 2024
[Snyk] Security upgrade lerna from 3.22.1 to 6.5.0 aliscco/alisco-node#1437
Open
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

v8 engine Issues and PRs related to the V8 dependency.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

5 participants

@ofrobots @bnoordhuis @jasnell @mscdex @targos
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.