RESOLVED FIXED 114931
Remove the memory instrumentation code
https://bugs.webkit.org/show_bug.cgi?id=114931
Summary Remove the memory instrumentation code
Benjamin Poulain
Reported 2013-04-21 19:54:03 PDT
That huge dead code is useless.
Attachments
Patch (591.93 KB, patch)
2013-04-21 20:06 PDT, Benjamin Poulain
no flags
Patch (603.82 KB, patch)
2013-04-21 21:07 PDT, Benjamin Poulain
no flags
Patch (604.95 KB, patch)
2013-04-21 21:36 PDT, Benjamin Poulain
no flags
Patch (605.12 KB, patch)
2013-04-21 22:04 PDT, Benjamin Poulain
no flags
Patch (606.45 KB, patch)
2013-04-21 22:21 PDT, Benjamin Poulain
no flags
Patch (606.62 KB, patch)
2013-04-21 22:37 PDT, Benjamin Poulain
no flags
Patch (606.63 KB, patch)
2013-04-21 22:49 PDT, Benjamin Poulain
kling: review+
Radar WebKit Bug Importer
Comment 1 2013-04-21 19:54:14 PDT
Benjamin Poulain
Comment 2 2013-04-21 20:06:30 PDT
EFL EWS Bot
Comment 3 2013-04-21 20:32:42 PDT
kov's GTK+ EWS bot
Comment 4 2013-04-21 20:55:18 PDT
Benjamin Poulain
Comment 5 2013-04-21 21:07:02 PDT
EFL EWS Bot
Comment 6 2013-04-21 21:17:51 PDT
Benjamin Poulain
Comment 7 2013-04-21 21:36:51 PDT
Benjamin Poulain
Comment 8 2013-04-21 22:04:43 PDT
Benjamin Poulain
Comment 9 2013-04-21 22:21:04 PDT
kov's GTK+ EWS bot
Comment 10 2013-04-21 22:31:36 PDT
Early Warning System Bot
Comment 11 2013-04-21 22:32:05 PDT
Early Warning System Bot
Comment 12 2013-04-21 22:37:21 PDT
Benjamin Poulain
Comment 13 2013-04-21 22:37:59 PDT
Benjamin Poulain
Comment 14 2013-04-21 22:49:46 PDT
Benjamin Poulain
Comment 15 2013-04-21 23:56:00 PDT
Comment on attachment 198991 [details] Patch Looks like two sick bots. It builds everywhere else -> moving to review?
Andreas Kling
Comment 16 2013-04-22 03:14:08 PDT
Comment on attachment 198991 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=198991&action=review This certainly seems like the right thing to do. r=me. > Source/WebCore/ChangeLog:15 > + By removing the code, the binary become 1240976 bytes smaller. > + Yep, almost 1 Mb, bringing WebCore to the size it has 5 months ago :) Holy halloumi, Batman!
Timothy Hatcher
Comment 17 2013-04-22 06:05:11 PDT
(In reply to comment #16) > (From update of attachment 198991 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=198991&action=review > > This certainly seems like the right thing to do. r=me. > > > Source/WebCore/ChangeLog:15 > > + By removing the code, the binary become 1240976 bytes smaller. > > + Yep, almost 1 Mb, bringing WebCore to the size it has 5 months ago :) > > Holy halloumi, Batman! Nice!
Alexey Proskuryakov
Comment 18 2013-04-22 10:58:00 PDT
Comment on attachment 198991 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=198991&action=review > Source/WebCore/ChangeLog:24 > + * CMakeLists.txt: > + * GNUmakefile.list.am: > + * Modules/webaudio/AudioContext.cpp: > + * Modules/webaudio/AudioContext.h: > + (AudioContext): > + * Modules/webaudio/AudioNode.cpp: > + * Modules/webaudio/AudioNode.h: > + (AudioNode): Can you please edit this list to make it shorter/nicer, or even remove it altogether? I can't imagine any use for it in the ChangeLog.
Joseph Pecoraro
Comment 19 2013-04-22 10:58:04 PDT
Comment on attachment 198991 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=198991&action=review Nice size saving. > Source/WebCore/inspector/Inspector.json:79 > "events": [ Unless someone can think of a good reason to leave it in, this should also remove the "addNativeSnapshotChunk" event in the memory domain. The event can no longer be generated by our backend.
Timothy Hatcher
Comment 20 2013-04-22 11:13:57 PDT
There are a handful of protocol events and functions we can remove. I filed that as bug 114118.
Benjamin Poulain
Comment 21 2013-04-22 16:00:41 PDT
Eric Seidel (no email)
Comment 22 2013-04-22 16:43:28 PDT
I'm curious if the size-win you saw was in Debug or Release?
Benjamin Poulain
Comment 23 2013-04-22 17:07:31 PDT
(In reply to comment #22) > I'm curious if the size-win you saw was in Debug or Release? Release. My laptop is a little slow for debug builds :)
Eric Seidel (no email)
Comment 24 2013-04-22 23:13:56 PDT
I've filed a bug in Chromium about tracking the effect of this on our binary size: https://code.google.com/p/chromium/issues/detail?id=234422 Interesting that Nico's data showed this as only 300kb for Chroimum. I wonder if we're compiling with some clang/gcc flag which WebKit should consider.
Nico Weber
Comment 25 2013-04-22 23:25:41 PDT
(In reply to comment #24) > I've filed a bug in Chromium about tracking the effect of this on our binary size: > https://code.google.com/p/chromium/issues/detail?id=234422 > > Interesting that Nico's data showed this as only 300kb for Chroimum. I wonder if we're compiling with some clang/gcc flag which WebKit should consider. Might just be stripped vs not stripped.
Csaba Osztrogonác
Comment 26 2013-04-23 02:04:51 PDT
(In reply to comment #21) > Committed r148921: <http://trac.webkit.org/changeset/148921> FYI: It broke the build on the Apple Windows bots.
Note You need to log in before you can comment on or make changes to this bug.