Skip to content
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

src: fix compiler warning about deprecated api #18390

Closed
wants to merge 1 commit into from

Conversation

MylesBorins
Copy link
Contributor

The GetCpuProfiler() api has been deprecated and it is advised to
use the CpuProfiler::New call instead. This PR refactors to code
causing the warning using a pattern found within in the V8 codebase.

@nodejs-github-bot nodejs-github-bot added the c++ Issues and PRs that require attention from people who are familiar with C++. label Jan 26, 2018
The `GetCpuProfiler()` api has been deprecated and it is advised to
use the `CpuProfiler::New` call instead. This PR refactors to code
causing the warning using a pattern found within in the V8 codebase.
@targos
Copy link
Member

targos commented Jan 26, 2018

See discussion in #18039. It seems to be more complicated than this.

@bnoordhuis
Copy link
Member

As well, instantiating a new profiler every tick leaks memory like a sieve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ Issues and PRs that require attention from people who are familiar with C++.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants