Skip to content
  • loislo@chromium.org's avatar
    Web Inspector: NMI: replace ObjectType enum with static const char* string identifiers. · f0946f26
    loislo@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=95739
    
    Reviewed by Yury Semikhatsky.
    
    When we go deeper into different parts of browser like skia, chromium itself etc.
    we can't use a single enum for all reported object types.
    The current idea is to use plain simple strings as ObjectType identifiers.
    In the future patches we will extract these identifiers into separate class or namespace
    and and split it between components.
    
    Source/WebCore:
    
    * dom/MemoryInstrumentation.cpp:
    (WebCore):
    * dom/MemoryInstrumentation.h:
    (MemoryInstrumentation):
    * inspector/InspectorMemoryAgent.cpp:
    (WebCore::addMemoryBlockFor):
    (WebCore):
    * inspector/MemoryInstrumentationImpl.cpp:
    (WebCore::MemoryInstrumentationImpl::MemoryInstrumentationImpl):
    (WebCore::MemoryInstrumentationImpl::countObjectSize):
    * inspector/MemoryInstrumentationImpl.h:
    (WebCore::MemoryInstrumentationImpl::totalSize):
    (WebCore::MemoryInstrumentationImpl::reportedSizeForAllTypes):
    (MemoryInstrumentationImpl):
    
    Source/WebKit/chromium:
    
    * tests/MemoryInstrumentationTest.cpp:
    (WebCore::TEST):
    (WebCore):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@127571 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    f0946f26