Skip to content

profiler: declare missing printErr - #13590

Closed
indutny wants to merge 1 commit into
nodejs:masterfrom
indutny:fix/profiler-error
Closed

profiler: declare missing printErr#13590
indutny wants to merge 1 commit into
nodejs:masterfrom
indutny:fix/profiler-error

Conversation

@indutny

Copy link
Copy Markdown
Member
Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

profiler?

v8/tools/tickprocessor.js assumes presence of global printErr, which
is defined in d8.

`v8/tools/tickprocessor.js` assumes presence of global `printErr`, which
is defined in `d8`.
@nodejs-github-botnodejs-github-bot added the tools Issues and PRs related to the tools directory. label Jun 9, 2017
@indutny

Copy link
Copy Markdown
MemberAuthor

cc @nodejs/collaborators

@indutny

Copy link
Copy Markdown
MemberAuthor

cc @nodejs/v8

@refack

Copy link
Copy Markdown
Contributor

@indutny any way to regression test this? (point me in the right direction I'll write the test)?

@refack

Copy link
Copy Markdown
Contributor

@indutny any way to regression test this? (point me in the right direction I'll write the test)?

No need test/tick-processor/test-tick-processor-unknown.js fails:

===releasetest-tick-processor-unknown===Path: tick-processor/test-tick-processor-unknownundefined:2649printErr(str);^
ReferenceError: printErrisnotdefinedatTickProcessor.printError(evalat<anonymous>(internal/v8_prof_processor.js:32:1),<anonymous>:2649:3)
at TickProcessor.LogReader.processLog_ (eval at <anonymous> (internal/v8_prof_processor.js:32:1), <anonymous>:2409:12)
at TickProcessor.LogReader.processLogLine (eval at <anonymous> (internal/v8_prof_processor.js:32:1), <anonymous>:2292:10)
at TickProcessor.processLogFile (eval at <anonymous> (internal/v8_prof_processor.js:32:1), <anonymous>:2677:10)
at eval (eval at <anonymous> (internal/v8_prof_processor.js:32:1), <anonymous>:3844:15)
at eval (eval at <anonymous> (internal/v8_prof_processor.js:32:1), <anonymous>:3848:3)
at internal/v8_prof_processor.js:32:1
at NativeModule.compile (bootstrap_node.js:563:7)
at Function.NativeModule.require (bootstrap_node.js:506:18)
at startup (bootstrap_node.js:116:20)
undefined:2649
printErr(str);
^

@indutny

Copy link
Copy Markdown
MemberAuthor

@refack yeah.

@refack

Copy link
Copy Markdown
Contributor

@addaleax

Copy link
Copy Markdown
Member

Landed in 27cc30a

addaleax pushed a commit that referenced this pull request Jun 12, 2017
`v8/tools/tickprocessor.js` assumes presence of global `printErr`, which
is defined in `d8`.
PR-URL: #13590
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
addaleax pushed a commit that referenced this pull request Jun 12, 2017
`v8/tools/tickprocessor.js` assumes presence of global `printErr`, which
is defined in `d8`.
PR-URL: #13590
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
@addaleaxaddaleax mentioned this pull request Jun 12, 2017
@indutny
indutny deleted the fix/profiler-error branch June 13, 2017 07:13
@gibfahngibfahn mentioned this pull request Jun 15, 2017
3 tasks
MylesBorins pushed a commit that referenced this pull request Jul 17, 2017
`v8/tools/tickprocessor.js` assumes presence of global `printErr`, which
is defined in `d8`.
PR-URL: #13590
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
@MylesBorins

Copy link
Copy Markdown
Contributor

landed on v6.x. Let me know if it should be backed out

@MylesBorinsMylesBorins mentioned this pull request Jul 18, 2017
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

toolsIssues and PRs related to the tools directory.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@indutny@refack@addaleax@MylesBorins@cjihrig@tniessen@nodejs-github-bot