Closed Bug 955135 Opened 10 years ago Closed 10 years ago

Add a memory reporter for glib

Categories

(Chat Core :: Debug, defect)

x86
Other
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: florian, Assigned: florian)

Details

Attachments

(1 file, 3 obsolete files)

*** Original post on bio 1707 at 2012-09-26 22:11:00 UTC ***

*** Due to BzAPI limitations, the initial description is in comment 1 ***
Attached patch Patch (obsolete) — Splinter Review
*** Original post on bio 1707 as attmnt 1911 at 2012-09-26 22:11:00 UTC ***

This will also force glib to use jemalloc if it wasn't using it already, which seems a good thing.

This patch has ifdefs so that the reporter isn't included on Linux. Blaming the glib memory on libpurple wouldn't make any sense on Linux where the UI is based on GTK (and so uses glib heavily).
Attached patch Patch v2 (obsolete) — Splinter Review
*** Original post on bio 1707 as attmnt 1912 at 2012-09-26 22:33:00 UTC ***

Moved that new code into a separate purpleMemory.cpp file to not clutter even more the already messy purpleInit.cpp file.
Comment on attachment 8353669 [details] [diff] [review]
Patch

*** Original change on bio 1707 attmnt 1911 at 2012-09-26 22:33:23 UTC was without comment, so any subsequent comment numbers will be shifted ***
Attachment #8353669 - Attachment is obsolete: true
Assignee: nobody → florian
Attached patch Patch v2 (obsolete) — Splinter Review
*** Original post on bio 1707 as attmnt 1913 at 2012-09-26 22:34:00 UTC ***

Patch v2, for real this time.
Comment on attachment 8353670 [details] [diff] [review]
Patch v2

*** Original change on bio 1707 attmnt 1912 at 2012-09-26 22:34:31 UTC was without comment, so any subsequent comment numbers will be shifted ***
Attachment #8353670 - Attachment is obsolete: true
Attached patch Patch v3Splinter Review
*** Original post on bio 1707 as attmnt 1914 at 2012-09-26 22:58:00 UTC ***

Took into account Mook's review comments over IRC. Mook said this new patch looks good.
Attachment #8353672 - Flags: review+
Comment on attachment 8353671 [details] [diff] [review]
Patch v2

*** Original change on bio 1707 attmnt 1913 at 2012-09-26 22:58:14 UTC was without comment, so any subsequent comment numbers will be shifted ***
Attachment #8353671 - Attachment is obsolete: true
*** Original post on bio 1707 at 2012-09-26 23:46:43 UTC ***

Checked in as http://hg.instantbird.org/instantbird/rev/e65c45291ab3

Awesome! :)
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → 1.3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: