in general, you can check bit.ly/v8-api-changes to learn about replacements for deprecated and removed APIs
On Mon, Nov 7, 2016 at 11:51 AM Michael Lippautz <mlippa...@chromium.org> wrote: > On Fri, Nov 4, 2016 at 4:01 PM Ivan P. <ivan.pizhe...@gmail.com> wrote: > > Hello, I am porting my app to latest stable version of the V8 engine from > quite legacy V8 3.19. > I was using v8::V8::AddMemoryAllocationCallback() to set callaback on the > memory allocation actions. > But now I can't find this function. What is analog to this in the new V8? > I am porting to version 5.3.332.45 > > > AddMemoryAllocationCallback has been removed because its semantics were > not clearly defined. > > You can use Isolate::GetHeapSpaceStatistics from a combination of > (a) a GC epilogue callback registered using Isolate::AddGCEpilogueCallback > (b) an interrupt registered using Isolate::RequestInterrupt. > > For coarse-grained (up to a couple %) info (a) will be enough as the GC > will kick in if memory grows above certain limits. (b) is needed if you > want more fine-grained statistics. > > -Michael > > -- > -- > v8-users mailing list > v8-users@googlegroups.com > http://groups.google.com/group/v8-users > --- > You received this message because you are subscribed to the Google Groups > "v8-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to v8-users+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- -- v8-users mailing list v8-users@googlegroups.com http://groups.google.com/group/v8-users --- You received this message because you are subscribed to the Google Groups "v8-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to v8-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.