Changeset 67111 in webkit


Ignore:
Timestamp:
Sep 9, 2010 1:49:44 PM (14 years ago)
Author:
antonm@chromium.org
Message:

2010-09-09 Anton Muhin <antonm@chromium.org>

Reviewed by Adam Barth.

[v8] bypass caches when query memory usage from post GC and in crash handler.
https://bugs.webkit.org/show_bug.cgi?id=45036

Second part of the whole change: now use API introduced in
http://trac.webkit.org/changeset/66818 and now backed by Chromium.

  • bindings/v8/V8DOMWindowShell.cpp: (WebCore::reportFatalErrorInV8):
  • bindings/v8/V8GCController.cpp: (WebCore::V8GCController::gcEpilogue):
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r67109 r67111  
     12010-09-09  Anton Muhin  <antonm@chromium.org>
     2
     3        Reviewed by Adam Barth.
     4
     5        [v8] bypass caches when query memory usage from post GC and in crash handler.
     6        https://bugs.webkit.org/show_bug.cgi?id=45036
     7
     8        Second part of the whole change: now use API introduced in
     9        http://trac.webkit.org/changeset/66818 and now backed by Chromium.
     10
     11        * bindings/v8/V8DOMWindowShell.cpp:
     12        (WebCore::reportFatalErrorInV8):
     13        * bindings/v8/V8GCController.cpp:
     14        (WebCore::V8GCController::gcEpilogue):
     15
    1162010-09-09  Kwang Yul Seo  <skyul@company100.net>
    217
  • trunk/WebCore/bindings/v8/V8DOMWindowShell.cpp

    r66840 r67111  
    8686    int memoryUsageMB = -1;
    8787#if PLATFORM(CHROMIUM)
    88     memoryUsageMB = ChromiumBridge::memoryUsageMB();
     88    memoryUsageMB = ChromiumBridge::actualMemoryUsageMB();
    8989#endif
    9090    printf("V8 error: %s (%s).  Current memory usage: %d MB\n", message, location, memoryUsageMB);
  • trunk/WebCore/bindings/v8/V8GCController.cpp

    r61252 r67111  
    407407}
    408408
     409int getActualMemoryUsageInMB()
     410{
     411#if PLATFORM(CHROMIUM)
     412    return ChromiumBridge::actualMemoryUsageMB();
     413#else
     414    return 0;
     415#endif
     416}
     417
    409418}  // anonymous namespace
    410419
     
    418427    visitActiveDOMObjectsInCurrentThread(&epilogueVisitor);
    419428
    420     workingSetEstimateMB = getMemoryUsageInMB();
     429    workingSetEstimateMB = getActualMemoryUsageInMB();
    421430
    422431#ifndef NDEBUG
Note: See TracChangeset for help on using the changeset viewer.