<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Web Inspector: High Level Memory Overview Instrument"
   href="https://bugs.webkit.org/show_bug.cgi?id=153516#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Web Inspector: High Level Memory Overview Instrument"
   href="https://bugs.webkit.org/show_bug.cgi?id=153516">bug 153516</a>
              from <span class="vcard"><a class="email" href="mailto:bburg&#64;apple.com" title="Brian Burg &lt;bburg&#64;apple.com&gt;"> <span class="fn">Brian Burg</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=269943&amp;action=diff" name="attach_269943" title="[PATCH] Proposed Fix">attachment 269943</a> <a href="attachment.cgi?id=269943&amp;action=edit" title="[PATCH] Proposed Fix">[details]</a></span>
[PATCH] Proposed Fix

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=269943&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=269943&amp;action=review</a>

Backend parts look really clean.

<span class="quote">&gt; LayoutTests/ChangeLog:11
&gt; +        Basic test for the new domain tracking commands ane events.</span >

typo: 'and'

<span class="quote">&gt; LayoutTests/inspector/memory/tracking.html:26
&gt; +                let types = categories.reduce((list, x) =&gt; { list.push(x.type); return list; }, []).sort();</span >

This should be Array.prototype.map.

<span class="quote">&gt; Source/JavaScriptCore/ChangeLog:8
&gt; +</span >

Message: 'Add ENABLE(RESOURCE_USAGE). This is already used in WebCore.'

<span class="quote">&gt; Source/JavaScriptCore/inspector/protocol/Memory.json:8
&gt; +            &quot;id&quot;: &quot;Event&quot;,</span >

I can't figure out this name. Why? I would have said 'ResourceUsageData' or something.

<span class="quote">&gt; Source/JavaScriptCore/inspector/protocol/Memory.json:16
&gt; +            &quot;id&quot;: &quot;Category&quot;,</span >

I was expecting 'Category' to be the name of the enum. Please rename to CategoryData.

<span class="quote">&gt; Source/JavaScriptCore/inspector/protocol/Memory.json:39
&gt; +                { &quot;name&quot;: &quot;timestamp&quot;, &quot;type&quot;: &quot;number&quot; }</span >

One parameter per line, please. That is how most inspector protocol specifications are formatted.

<span class="quote">&gt; Source/JavaScriptCore/inspector/protocol/Memory.json:44
&gt; +            &quot;description&quot;: &quot;While tracking is enabled the backend will periodically update the frontend with event data.&quot;,</span >

Nit: 'after tracking has started' (there's no 'enabled command)

<span class="quote">&gt; Source/JavaScriptCore/inspector/protocol/Memory.json:46
&gt; +                { &quot;name&quot;: &quot;event&quot;, &quot;$ref&quot;: &quot;Event&quot; }</span >

Ditto.

<span class="quote">&gt; Source/JavaScriptCore/inspector/protocol/Memory.json:51
&gt; +            &quot;description&quot;: &quot;When tracking is complete.&quot;</span >

Please unify the tense of the tracking event descriptions.

&quot;Memory usage tracking [has] started/stopped.&quot;

<span class="quote">&gt; Source/JavaScriptCore/inspector/scripts/codegen/generator.py:41
&gt; +_ALWAYS_UPPERCASED_ENUM_VALUE_SUBSTRINGS = set(['API', 'CSS', 'DOM', 'HTML', 'JIT', 'XHR', 'XML'])</span >

Did you rebaseline the generator tests?

<span class="quote">&gt; Source/WebCore/ChangeLog:8
&gt; +</span >

'Add a new agent that gathers data from the ResourceUsageThread...'

<span class="quote">&gt; Source/WebCore/inspector/InspectorMemoryAgent.cpp:82
&gt; +void InspectorMemoryAgent::sample(const ResourceUsageData&amp; data)</span >

I would rename it to 'collectSample'. It's unclear otherwise that sample is the verb or noun.

<span class="quote">&gt; Source/WebCore/inspector/InspectorMemoryAgent.h:66
&gt; +#endif // !defined(InspectorMemoryAgent_h)</span >

Newline at EOF?</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>