Memory profiling and hunting memory leaks

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Memory profiling and hunting memory leaks

Loc Nguyen
Hey, I sent an email a few days ago but was never sent to the mailing
list.  I'm trying to hunt down some memory leaks in gstreamer on
Windows.  Can anyone advise on how core gstreamer devs are doing this?  
Any internal APIs that maybe useful for me to try?

-Loc

------------------------------------------------------------------------------

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Memory profiling and hunting memory leaks

Edward Hervey
Administrator
Hi,

On Fri, 2010-05-14 at 16:19 -0700, Loc Nguyen wrote:
> Hey, I sent an email a few days ago but was never sent to the mailing
> list.  I'm trying to hunt down some memory leaks in gstreamer on
> Windows.  Can anyone advise on how core gstreamer devs are doing this?  
> Any internal APIs that maybe useful for me to try?

  There isn't anything in the GStreamer API that would help you to
*track* this down.
  On Linux and MacOSX most of us use valgrind, here's how we use it :
  http://live.gnome.org/Valgrind

  If you have access to a Linux or MacOSX machine, you can try
reproducing your use-cases there and use valgrind to find the leaks.
  If you don't have access to such machines, or you have
windows-specific plugins, then you'll have to look for a memory profiler
for windows (don't know of any).

   Edward
 

>
> -Loc
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel



------------------------------------------------------------------------------

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Memory profiling and hunting memory leaks

Edward Hervey
Administrator
On Sat, 2010-05-15 at 09:44 +0200, Edward Hervey wrote:

> Hi,
>
> On Fri, 2010-05-14 at 16:19 -0700, Loc Nguyen wrote:
> > Hey, I sent an email a few days ago but was never sent to the mailing
> > list.  I'm trying to hunt down some memory leaks in gstreamer on
> > Windows.  Can anyone advise on how core gstreamer devs are doing this?  
> > Any internal APIs that maybe useful for me to try?
>
>   There isn't anything in the GStreamer API that would help you to
> *track* this down.
>   On Linux and MacOSX most of us use valgrind, here's how we use it :
>   http://live.gnome.org/Valgrind

  Here's another example of using valgrind more oriented towards
gstreamer-based applications:
  http://www.buzztard.org/index.php/Debugging

>
>   If you have access to a Linux or MacOSX machine, you can try
> reproducing your use-cases there and use valgrind to find the leaks.
>   If you don't have access to such machines, or you have
> windows-specific plugins, then you'll have to look for a memory profiler
> for windows (don't know of any).
>
>    Edward
>  
>
> >
> > -Loc
> >
> > ------------------------------------------------------------------------------
> >
> > _______________________________________________
> > gstreamer-devel mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>



------------------------------------------------------------------------------

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Memory profiling and hunting memory leaks

Vincent Torri
In reply to this post by Edward Hervey


On Sat, 15 May 2010, Edward Hervey wrote:

> Hi,
>
> On Fri, 2010-05-14 at 16:19 -0700, Loc Nguyen wrote:
>> Hey, I sent an email a few days ago but was never sent to the mailing
>> list.  I'm trying to hunt down some memory leaks in gstreamer on
>> Windows.  Can anyone advise on how core gstreamer devs are doing this?
>> Any internal APIs that maybe useful for me to try?
>
>  There isn't anything in the GStreamer API that would help you to
> *track* this down.
>  On Linux and MacOSX most of us use valgrind, here's how we use it :
>  http://live.gnome.org/Valgrind
>
>  If you have access to a Linux or MacOSX machine, you can try
> reproducing your use-cases there and use valgrind to find the leaks.
>  If you don't have access to such machines, or you have
> windows-specific plugins, then you'll have to look for a memory profiler
> for windows (don't know of any).

mpatrol can help on windows.

Vincent Torri

------------------------------------------------------------------------------

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel