https://github.com/alanmcgovern/gobject-tracker
Tracks allocated gobject instances and gives a managed/native backtrace.
https://github.com/alanmcgovern/gobject-tracker
Last synced: about 2 months ago
JSON representation
Tracks allocated gobject instances and gives a managed/native backtrace.
- Host: GitHub
- URL: https://github.com/alanmcgovern/gobject-tracker
- Owner: alanmcgovern
- Created: 2017-05-03T15:26:32.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-05-04T12:04:06.000Z (almost 8 years ago)
- Last Synced: 2025-01-23T12:46:54.587Z (3 months ago)
- Language: C
- Size: 8.79 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Compilation:
Just run `make` inside the main directory.
Installation:
Run `make install` to install the module into a side-by-side monodevelop
checkout. If your monodevelop is somewhere else then set the correct path
using the `MONODEVELOP_BIN_DIR` variable.Usage:
If you are compiling xamarin studio from source, just use
$ cd monodevelop && make run-leaks
Alternatively, export these two environment variables and then launch Xamarin Studio.
This method may be less accurate as it does not set up dllmaps in mono.
DYLD_FORCE_FLAT_NAMESPACE=1
DYLD_INSERT_LIBRARIES=/full/path/to/gobject-tracker/libgobject-tracker.dylib
Send the `USR1` signal to your running Xamarin Studio instance to queue a
dump of all living objects.$ kill -USR1 $pid_of_xamarin_studio
You will have to trigger the creation, ref or unref of a gtk object in order
to perform the queued object dump. It is not safe to attempt to perform the
dump inside a signal handler. You can trigger this by just mousing over
Xamarin Studio.Additional features:
By default all object creation/ref/unref operations will be logged. If you wish
to gather stacktraces for each event just export this environment variable:LOG_FLAGS=all
If you wish to gather data for just one object type export something like this:
LOG_TYPE=GtkFrame