Bug 92379 - Web Inspector: make MemoryInstrumentation methods private
Summary: Web Inspector: make MemoryInstrumentation methods private
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Yury Semikhatsky
URL:
Keywords:
Depends on: 92359
Blocks: 87262
  Show dependency treegraph
 
Reported: 2012-07-26 06:54 PDT by Yury Semikhatsky
Modified: 2012-07-30 05:59 PDT (History)
19 users (show)

See Also:


Attachments
Patch (24.52 KB, patch)
2012-07-26 07:07 PDT, Yury Semikhatsky
no flags Details | Formatted Diff | Diff
Patch (24.52 KB, patch)
2012-07-26 07:27 PDT, Yury Semikhatsky
no flags Details | Formatted Diff | Diff
Patch (24.36 KB, patch)
2012-07-30 02:33 PDT, Yury Semikhatsky
no flags Details | Formatted Diff | Diff
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 Details
Patch for landing (23.08 KB, patch)
2012-07-30 04:51 PDT, Yury Semikhatsky
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yury Semikhatsky 2012-07-26 06:54:22 PDT
The only way to report an object should be either MemoryInstrumentation::addObject or  MemoryInstrumentation::addInstrumentedObject.
Comment 1 Yury Semikhatsky 2012-07-26 07:07:03 PDT
Created attachment 154646 [details]
Patch
Comment 2 Yury Semikhatsky 2012-07-26 07:27:44 PDT
Created attachment 154650 [details]
Patch
Comment 3 Ilya Tikhonovsky 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.
Comment 4 Early Warning System Bot 2012-07-26 07:41:12 PDT
Comment on attachment 154646 [details]
Patch

Attachment 154646 [details] did not pass qt-ews (qt):
Output: http://queues.webkit.org/results/13339771
Comment 5 Yury Semikhatsky 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.
Comment 6 Early Warning System Bot 2012-07-26 08:02:54 PDT
Comment on attachment 154650 [details]
Patch

Attachment 154650 [details] did not pass qt-ews (qt):
Output: http://queues.webkit.org/results/13353751
Comment 7 Gyuyoung Kim 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.
Comment 8 Yury Semikhatsky 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.
Comment 9 Yury Semikhatsky 2012-07-30 02:33:00 PDT
Created attachment 155238 [details]
Patch
Comment 10 Ilya Tikhonovsky 2012-07-30 02:36:03 PDT
Comment on attachment 155238 [details]
Patch

lgtm
Comment 11 Early Warning System Bot 2012-07-30 02:54:23 PDT
Comment on attachment 155238 [details]
Patch

Attachment 155238 [details] did not pass qt-ews (qt):
Output: http://queues.webkit.org/results/13381719
Comment 12 Early Warning System Bot 2012-07-30 03:05:08 PDT
Comment on attachment 155238 [details]
Patch

Attachment 155238 [details] did not pass qt-wk2-ews (qt):
Output: http://queues.webkit.org/results/13401010
Comment 13 Build Bot 2012-07-30 03:06:43 PDT
Comment on attachment 155238 [details]
Patch

Attachment 155238 [details] did not pass win-ews (win):
Output: http://queues.webkit.org/results/13394264
Comment 14 WebKit Review Bot 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
Comment 15 WebKit Review Bot 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
Comment 16 Yury Semikhatsky 2012-07-30 04:51:41 PDT
Created attachment 155262 [details]
Patch for landing

Fixed Qt and Win build files.
Comment 17 WebKit Review Bot 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.
Comment 18 Yury Semikhatsky 2012-07-30 05:59:37 PDT
Committed r124017: <http://trac.webkit.org/changeset/124017>