RESOLVED FIXED 92379
Web Inspector: make MemoryInstrumentation methods private
https://bugs.webkit.org/show_bug.cgi?id=92379
Summary Web Inspector: make MemoryInstrumentation methods private
Yury Semikhatsky
Reported 2012-07-26 06:54:22 PDT
The only way to report an object should be either MemoryInstrumentation::addObject or MemoryInstrumentation::addInstrumentedObject.
Attachments
Patch (24.52 KB, patch)
2012-07-26 07:07 PDT, Yury Semikhatsky
no flags
Patch (24.52 KB, patch)
2012-07-26 07:27 PDT, Yury Semikhatsky
no flags
Patch (24.36 KB, patch)
2012-07-30 02:33 PDT, Yury Semikhatsky
no flags
Archive of layout-test-results from gce-cr-linux-01 (302.79 KB, application/zip)
2012-07-30 04:01 PDT, WebKit Review Bot
no flags
Patch for landing (23.08 KB, patch)
2012-07-30 04:51 PDT, Yury Semikhatsky
no flags
Yury Semikhatsky
Comment 1 2012-07-26 07:07:03 PDT
Yury Semikhatsky
Comment 2 2012-07-26 07:27:44 PDT
Ilya Tikhonovsky
Comment 3 2012-07-26 07:29:44 PDT
Comment on attachment 154646 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=154646&action=review > Source/WebCore/dom/MemoryInstrumentation.h:65 > - template <typename T> void addMember(const T& t, ObjectType objectType) > + template <typename T> void addObject(const T& t, ObjectType objectType) > { > - OwningTraits<T>::addMember(this, t, objectType); > + OwningTraits<T>::addObject(this, t, objectType); > } I see that we never call addObject from places other than MemoryClassInfo. Please move it to private area.
Early Warning System Bot
Comment 4 2012-07-26 07:41:12 PDT
Yury Semikhatsky
Comment 5 2012-07-26 07:51:52 PDT
(In reply to comment #3) > (From update of attachment 154646 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=154646&action=review > > > Source/WebCore/dom/MemoryInstrumentation.h:65 > > - template <typename T> void addMember(const T& t, ObjectType objectType) > > + template <typename T> void addObject(const T& t, ObjectType objectType) > > { > > - OwningTraits<T>::addMember(this, t, objectType); > > + OwningTraits<T>::addObject(this, t, objectType); > > } > > I see that we never call addObject from places other than MemoryClassInfo. Please move it to private area. Done.
Early Warning System Bot
Comment 6 2012-07-26 08:02:54 PDT
Gyuyoung Kim
Comment 7 2012-07-26 21:51:14 PDT
Comment on attachment 154650 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=154650&action=review Don't you need to set "Depend on Bug 92359" ? > Source/WebCore/dom/MemoryInstrumentation.cpp:32 > + Nit : in my humble opinion, header file is placed just below config.h without an empty line generally.
Yury Semikhatsky
Comment 8 2012-07-30 02:30:58 PDT
(In reply to comment #7) > (From update of attachment 154650 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=154650&action=review > > Don't you need to set "Depend on Bug 92359" ? > Done. > > Source/WebCore/dom/MemoryInstrumentation.cpp:32 > > + > > Nit : in my humble opinion, header file is placed just below config.h without an empty line generally. Done.
Yury Semikhatsky
Comment 9 2012-07-30 02:33:00 PDT
Ilya Tikhonovsky
Comment 10 2012-07-30 02:36:03 PDT
Comment on attachment 155238 [details] Patch lgtm
Early Warning System Bot
Comment 11 2012-07-30 02:54:23 PDT
Early Warning System Bot
Comment 12 2012-07-30 03:05:08 PDT
Build Bot
Comment 13 2012-07-30 03:06:43 PDT
WebKit Review Bot
Comment 14 2012-07-30 04:01:46 PDT
Comment on attachment 155238 [details] Patch Attachment 155238 [details] did not pass chromium-ews (chromium-xvfb): Output: http://queues.webkit.org/results/13393296 New failing tests: platform/chromium/compositing/accelerated-drawing/svg-filters.html platform/chromium/compositing/accelerated-drawing/alpha.html
WebKit Review Bot
Comment 15 2012-07-30 04:01:53 PDT
Created attachment 155249 [details] Archive of layout-test-results from gce-cr-linux-01 The attached test failures were seen while running run-webkit-tests on the chromium-ews. Bot: gce-cr-linux-01 Port: <class 'webkitpy.common.config.ports.ChromiumXVFBPort'> Platform: Linux-2.6.39-gcg-201203291735-x86_64-with-Ubuntu-10.04-lucid
Yury Semikhatsky
Comment 16 2012-07-30 04:51:41 PDT
Created attachment 155262 [details] Patch for landing Fixed Qt and Win build files.
WebKit Review Bot
Comment 17 2012-07-30 04:53:42 PDT
Comment on attachment 155238 [details] Patch Cleared Vsevolod Vlasov's review+ from obsolete attachment 155238 [details] so that this bug does not appear in http://webkit.org/pending-commit.
Yury Semikhatsky
Comment 18 2012-07-30 05:59:37 PDT
Note You need to log in before you can comment on or make changes to this bug.