WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
109687
Web Inspector: add experimental native heap graph to Timeline panel
https://bugs.webkit.org/show_bug.cgi?id=109687
Summary
Web Inspector: add experimental native heap graph to Timeline panel
Yury Semikhatsky
Reported
2013-02-13 06:15:07 PST
Statistics on the native memory usage will be collected after each top level task. The data will be represented as a graph instead of DOM counters for now.
Attachments
Patch
(17.87 KB, patch)
2013-02-13 06:17 PST
,
Yury Semikhatsky
no flags
Details
Formatted Diff
Diff
Screenshot with the patch applied
(105.31 KB, image/png)
2013-02-13 06:18 PST
,
Yury Semikhatsky
no flags
Details
Patch
(17.83 KB, patch)
2013-02-13 07:01 PST
,
Yury Semikhatsky
apavlov
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Yury Semikhatsky
Comment 1
2013-02-13 06:17:55 PST
Created
attachment 188068
[details]
Patch
Yury Semikhatsky
Comment 2
2013-02-13 06:18:34 PST
Created
attachment 188069
[details]
Screenshot with the patch applied
Ilya Tikhonovsky
Comment 3
2013-02-13 06:55:32 PST
Comment on
attachment 188068
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=188068&action=review
> Source/WebCore/inspector/InspectorTimelineAgent.cpp:548 > + m_memoryAgent->getProcessMemoryDistributionMap(&map);
we have null m_memoryAgent here in case of Worker.
> Source/WebCore/inspector/InspectorTimelineAgent.cpp:552 > +// printf("%s -> %ld\n", it->key.ascii().data(), it->value);
please remove this line
Yury Semikhatsky
Comment 4
2013-02-13 07:01:07 PST
Created
attachment 188077
[details]
Patch
Yury Semikhatsky
Comment 5
2013-02-13 07:09:34 PST
(In reply to
comment #3
)
> (From update of
attachment 188068
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=188068&action=review
> > > Source/WebCore/inspector/InspectorTimelineAgent.cpp:548 > > + m_memoryAgent->getProcessMemoryDistributionMap(&map); > > we have null m_memoryAgent here in case of Worker. >
Done.
> > Source/WebCore/inspector/InspectorTimelineAgent.cpp:552 > > +// printf("%s -> %ld\n", it->key.ascii().data(), it->value); > > please remove this line
Done.
Alexander Pavlov (apavlov)
Comment 6
2013-02-13 07:21:25 PST
Comment on
attachment 188077
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=188077&action=review
> Source/WebCore/inspector/Inspector.json:2634 > + { "name": "enabled", "type": "boolean", "description": "True to start collecting statisics on native memory usage." }
Please rephrase to include the disablement (false) case
> Source/WebCore/inspector/Inspector.json:2626 > + { "name": "enabled", "type": "boolean", "description": "True to start reporting DOM counters." }
Please rephrase to include the stop (false) case
> Source/WebCore/inspector/Inspector.json:2634 > + { "name": "enabled", "type": "boolean", "description": "True to start collecting statisics on native memory usage." }
Please rephrase to include the stop (false) case
> Source/WebCore/inspector/Inspector.json:2637 > + "description": "Starts sending statistics on native memory usage along with timeline events."
"Starts sending" -> "Whether to send"?
Yury Semikhatsky
Comment 7
2013-02-13 07:24:06 PST
(In reply to
comment #6
)
> (From update of
attachment 188077
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=188077&action=review
> > > Source/WebCore/inspector/Inspector.json:2634 > > + { "name": "enabled", "type": "boolean", "description": "True to start collecting statisics on native memory usage." } > > Please rephrase to include the disablement (false) case >
Done.
> > Source/WebCore/inspector/Inspector.json:2626 > > + { "name": "enabled", "type": "boolean", "description": "True to start reporting DOM counters." } > > Please rephrase to include the stop (false) case >
Done.
> > Source/WebCore/inspector/Inspector.json:2634 > > + { "name": "enabled", "type": "boolean", "description": "True to start collecting statisics on native memory usage." } > > Please rephrase to include the stop (false) case >
Done.
> > Source/WebCore/inspector/Inspector.json:2637 > > + "description": "Starts sending statistics on native memory usage along with timeline events." > > "Starts sending" -> "Whether to send"?
Done.
Yury Semikhatsky
Comment 8
2013-02-13 07:29:31 PST
Committed
r142746
: <
http://trac.webkit.org/changeset/142746
>
Joseph Pecoraro
Comment 9
2013-02-13 16:43:38 PST
Comment on
attachment 188077
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=188077&action=review
> Source/WebCore/inspector/Inspector.json:2624 > + "name": "setIncludeDomCounters",
The Inspector Protocol and WebKit project consistently use "DOM" capitalization. The "Dom" here looks out of place: getDOMCounters, addDOMStorage, setDOMBreakpoint, removeDOMBreakpoint, ... Quick follow-up?
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug