Debugging a reference count

Its like a headache when you want to debug the reference count of GOjects. You have SystemTap to debug the application but it’s bit of pain to setup it. But once you set it up then it works pretty cool.

But I choose simple way for counting the reference objects GObject-list. Clone it on your machine.

Before making it you need to install libunwind. and fire make command.

after making it use this command :

LD_PRELOAD=~/Development/tools/gobject-list/ application | grep application -i

it will gives you a reference count of GObject’s.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s