RESOLVED FIXED Bug 96511
Web Inspector: NMI: migrate core instrumentation code to WTF namespace
https://bugs.webkit.org/show_bug.cgi?id=96511
Summary Web Inspector: NMI: migrate core instrumentation code to WTF namespace
Ilya Tikhonovsky
Reported 2012-09-12 07:20:46 PDT
The only problem is a custom trait for KURL that looks weird if instrumentation code is moved to WTF I'll instrument it via normal reportMemoryUsage in the next patch.
Attachments
Patch (34.14 KB, patch)
2012-09-12 07:26 PDT, Ilya Tikhonovsky
no flags
Patch (35.21 KB, patch)
2012-09-12 08:16 PDT, Ilya Tikhonovsky
no flags
Patch (35.89 KB, patch)
2012-09-12 22:29 PDT, Ilya Tikhonovsky
no flags
with fix for mac build (36.37 KB, patch)
2012-09-12 23:05 PDT, Ilya Tikhonovsky
yurys: review+
webkit-ews: commit-queue-
Ilya Tikhonovsky
Comment 1 2012-09-12 07:26:39 PDT
Gyuyoung Kim
Comment 2 2012-09-12 07:50:38 PDT
Early Warning System Bot
Comment 3 2012-09-12 07:50:54 PDT
Early Warning System Bot
Comment 4 2012-09-12 07:53:39 PDT
Ilya Tikhonovsky
Comment 5 2012-09-12 08:16:45 PDT
Early Warning System Bot
Comment 6 2012-09-12 09:00:02 PDT
Ilya Tikhonovsky
Comment 7 2012-09-12 09:22:28 PDT
(In reply to comment #6) > (From update of attachment 163634 [details]) > Attachment 163634 [details] did not pass qt-wk2-ews (qt): > Output: http://queues.webkit.org/results/13821837 Looks like problem with dependency tracking.
Yury Semikhatsky
Comment 8 2012-09-12 11:26:56 PDT
Comment on attachment 163634 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=163634&action=review > Source/WebCore/bindings/js/ScriptProfiler.cpp:41 > +#include <wtf/Forward.h> You already included it in the header file. > Source/WebCore/css/MediaQuery.h:-39 > -class MemoryObjectInfo; How does this class declaration come here now?
Ilya Tikhonovsky
Comment 9 2012-09-12 11:30:07 PDT
(In reply to comment #8) > (From update of attachment 163634 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=163634&action=review > > > Source/WebCore/bindings/js/ScriptProfiler.cpp:41 > > +#include <wtf/Forward.h> > > You already included it in the header file. > > > Source/WebCore/css/MediaQuery.h:-39 > > -class MemoryObjectInfo; > > How does this class declaration come here now? It comes from wtf/Forward.h
Build Bot
Comment 10 2012-09-12 13:20:13 PDT
Ilya Tikhonovsky
Comment 11 2012-09-12 22:29:31 PDT
Ilya Tikhonovsky
Comment 12 2012-09-12 23:05:49 PDT
Created attachment 163784 [details] with fix for mac build
Early Warning System Bot
Comment 13 2012-09-12 23:55:29 PDT
Comment on attachment 163784 [details] with fix for mac build Attachment 163784 [details] did not pass qt-wk2-ews (qt): Output: http://queues.webkit.org/results/13824984
Yury Semikhatsky
Comment 14 2012-09-13 00:24:06 PDT
(In reply to comment #9) > (In reply to comment #8) > > (From update of attachment 163634 [details] [details]) > > View in context: https://bugs.webkit.org/attachment.cgi?id=163634&action=review > > > > > Source/WebCore/bindings/js/ScriptProfiler.cpp:41 > > > +#include <wtf/Forward.h> > > > > You already included it in the header file. > > > > > Source/WebCore/css/MediaQuery.h:-39 > > > -class MemoryObjectInfo; > > > > How does this class declaration come here now? > > It comes from wtf/Forward.h Still don't see it.
Ilya Tikhonovsky
Comment 15 2012-09-13 00:42:02 PDT
(In reply to comment #14) > (In reply to comment #9) > > (In reply to comment #8) > > > (From update of attachment 163634 [details] [details] [details]) > > > View in context: https://bugs.webkit.org/attachment.cgi?id=163634&action=review > > > > > > > Source/WebCore/bindings/js/ScriptProfiler.cpp:41 > > > > +#include <wtf/Forward.h> > > > > > > You already included it in the header file. > > > > > > > Source/WebCore/css/MediaQuery.h:-39 > > > > -class MemoryObjectInfo; > > > > > > How does this class declaration come here now? > > > > It comes from wtf/Forward.h > > Still don't see it. I found that it is including indirectly via wtf/WTFString.h -> wtf/StringImpl.h -> wtf/Forward.h
Ilya Tikhonovsky
Comment 16 2012-09-13 00:50:53 PDT
(In reply to comment #15) > (In reply to comment #14) > > (In reply to comment #9) > > > (In reply to comment #8) > > > > (From update of attachment 163634 [details] [details] [details] [details]) > > > > View in context: https://bugs.webkit.org/attachment.cgi?id=163634&action=review > > > > > > > > > Source/WebCore/bindings/js/ScriptProfiler.cpp:41 > > > > > +#include <wtf/Forward.h> > > > > > > > > You already included it in the header file. > > > > > > > > > Source/WebCore/css/MediaQuery.h:-39 > > > > > -class MemoryObjectInfo; > > > > > > > > How does this class declaration come here now? > > > > > > It comes from wtf/Forward.h > > > > Still don't see it. > > I found that it is including indirectly via > wtf/WTFString.h -> wtf/StringImpl.h -> wtf/Forward.h I think I can remove this include from StringImpl.h Looks like it is using only for "template <typename T> class StringBuffer;" But this change will affect toщ much cpp files so I'd like to do this in a separate patch.
Ilya Tikhonovsky
Comment 17 2012-09-13 01:11:33 PDT
Note You need to log in before you can comment on or make changes to this bug.