hyj1991 / v8-profiler-next

node bindings for the v8 profiler
MIT License
219 stars 21 forks source link

Is there performance hit when not profiling? #18

Closed ghost closed 4 years ago

ghost commented 4 years ago

I saw multiple places where people asked this question about the older "v8-profiler" package but none of them had any answers. Do you know is there any performance hit if I require('v8-profiler-next') at the top but not call any start CPU profiling functions? Thanks!

hyj1991 commented 4 years ago

Actually, if you require('v8-profiler-next') at the top but not call any profiling operation, your application won't have any performance hit.

ghost commented 4 years ago

Okay, thanks for information!