Re: Having memory leak issues with perl-c
demerphq <[email protected]> Thu, 28 Jul 2022 10:35:49 +0200
| Newsgroups | gmane.comp.lang.perl.quality-assurance |
|---|---|
| Message-ID | <CANgJU+VCRi5VB0EZndHF1YnBP6bxKJTLGjg_wZooNQDkzokwiw@mail.gmail.com> |
--0000000000005710e805e4d96cc9 Content-Type: text/plain; charset="UTF-8" On Wed, 27 Jul 2022 at 22:41, Mark Murawski <[email protected]> wrote: > > > On 7/27/22 13:20, demerphq wrote: > > Spectacular. I'll be reviewing and making changes that you're suggesting > and this helps my understanding for sure. > I was a bit off my game yesterday. I should have told you to make liberal use of sv_dump() when you are debugging. That will help you visualize what is going on. It's the XS equivalent to the Dump function from Devel::Peek (or more accurately it is what the Dump functions uses under the hood). You can pass any SV like structure (Eg, HV, AV, etc) into it with casting and it will dump out all the useful details, including refcounts. Good luck! cheers, Yves -- perl -Mre=debug -e "/just|another|perl|hacker/" --0000000000005710e805e4d96cc9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr">On Wed, 27 Jul 2022 at 22:41, Mark Muraws= ki <<a href=3D"mailto:[email protected]">markm-lists@intellaso= ft.net</a>> wrote:<br></div><div class=3D"gmail_quote"><blockquote class= =3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rg= b(204,204,204);padding-left:1ex"> =20 =20 =20 <div> <br> <br> <div>On 7/27/22 13:20, demerphq wrote:<br> </div> <br> Spectacular.=C2=A0 I'll be reviewing and making changes that you= 9;re suggesting and this helps my understanding for sure.<br></div></blockqu= ote><div><br></div><div>I was a bit off my game yesterday. I should have to= ld you to make liberal use of sv_dump() when you are debugging. That will h= elp you visualize what is going on. It's the XS equivalent to the Dump = function from Devel::Peek (or more accurately it is what the Dump functions= uses under the hood).</div><div><br></div><div>You can pass any SV like st= ructure (Eg, HV, AV, etc) into it with casting and it will dump out all the= useful details, including refcounts.</div><div><br></div><div>Good luck!</= div><div><br></div><div>cheers,</div><div>Yves</div></div><div><br></div>--= <br><div dir=3D"ltr" class=3D"gmail_signature">perl -Mre=3Ddebug -e "= /just|another|perl|hacker/"</div></div> --0000000000005710e805e4d96cc9--