Changeset 142241 in webkit


Ignore:
Timestamp:
Feb 8, 2013 12:18:04 AM (11 years ago)
Author:
loislo@chromium.org
Message:

Web Inspector: Native Memory Instrumentation: adjust chunk transfer size for better speed.
https://bugs.webkit.org/show_bug.cgi?id=109263

Reviewed by Yury Semikhatsky.

The chunk size is changed from 100 to 10000.
addString counts only first 256 symbols of the string.o

  • inspector/HeapGraphSerializer.cpp:

(WebCore::HeapGraphSerializer::pushUpdateIfNeeded):
(WebCore::HeapGraphSerializer::addString):

  • inspector/front-end/NativeMemorySnapshotView.js:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r142240 r142241  
     12013-02-08  Ilya Tikhonovsky  <loislo@chromium.org>
     2
     3        Web Inspector: Native Memory Instrumentation: adjust chunk transfer size for better speed.
     4        https://bugs.webkit.org/show_bug.cgi?id=109263
     5
     6        Reviewed by Yury Semikhatsky.
     7
     8        The chunk size is changed from 100 to 10000.
     9        addString counts only first 256 symbols of the string.o
     10
     11        * inspector/HeapGraphSerializer.cpp:
     12        (WebCore::HeapGraphSerializer::pushUpdateIfNeeded):
     13        (WebCore::HeapGraphSerializer::addString):
     14        * inspector/front-end/NativeMemorySnapshotView.js:
     15
    1162013-02-08  Kentaro Hara  <haraken@chromium.org>
    217
  • trunk/Source/WebCore/inspector/HeapGraphSerializer.cpp

    r142074 r142241  
    7070void HeapGraphSerializer::pushUpdateIfNeeded()
    7171{
    72     static const size_t chunkSize = 100;
     72    static const size_t chunkSize = 10000;
    7373    static const size_t averageEdgesPerNode = 5;
    7474
     
    175175    if (string.isEmpty())
    176176        return 0;
    177     StringMap::AddResult result = m_stringToIndex.add(string, m_stringToIndex.size() + 1);
     177    StringMap::AddResult result = m_stringToIndex.add(string.left(256), m_stringToIndex.size() + 1);
    178178    if (result.isNewEntry)
    179179        m_strings->addItem(string);
  • trunk/Source/WebCore/inspector/front-end/NativeMemorySnapshotView.js

    r142239 r142241  
    232232    __proto__: WebInspector.DataGridNode.prototype
    233233}
    234 
    235 
    236 
    237234
    238235/**
Note: See TracChangeset for help on using the changeset viewer.