Changeset 131327 in webkit


Ignore:
Timestamp:
Oct 15, 2012 11:48:00 AM (12 years ago)
Author:
zoltan@webkit.org
Message:

[chromium] Provide used JSHeap size in chromium's DRT for pageloadtest memory measurements
https://bugs.webkit.org/show_bug.cgi?id=99288

Reviewed by Ryosuke Niwa.

Provide used JSHeap size as we did it for the Apple port.

  • DumpRenderTree/chromium/TestEventPrinter.cpp:

(TestEventPrinter::handleDumpMemoryHeader): Add new function to print the JSHeap memory result.

  • DumpRenderTree/chromium/TestEventPrinter.h:

(TestEventPrinter): handleDumpMemoryHeader declaration.

  • DumpRenderTree/chromium/TestShell.cpp:

(TestShell::dump): Dump JSHeap value.

Location:
trunk/Tools
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r131316 r131327  
     12012-10-15  Zoltan Horvath  <zoltan@webkit.org>
     2
     3        [chromium] Provide used JSHeap size in chromium's DRT for pageloadtest memory measurements
     4        https://bugs.webkit.org/show_bug.cgi?id=99288
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        Provide used JSHeap size as we did it for the Apple port.
     9
     10        * DumpRenderTree/chromium/TestEventPrinter.cpp:
     11        (TestEventPrinter::handleDumpMemoryHeader): Add new function to print the JSHeap memory result.
     12        * DumpRenderTree/chromium/TestEventPrinter.h:
     13        (TestEventPrinter): handleDumpMemoryHeader declaration.
     14        * DumpRenderTree/chromium/TestShell.cpp:
     15        (TestShell::dump): Dump JSHeap value.
     16
    1172012-10-15  George Staikos  <staikos@webkit.org>
    218
  • trunk/Tools/DumpRenderTree/chromium/TestEventPrinter.cpp

    r122901 r131327  
    3131#include "config.h"
    3232#include "TestEventPrinter.h"
     33#include "v8.h"
    3334
    3435#include <stdio.h>
     
    5657    fprintf(stderr, "FAIL: Timed out waiting for notifyDone to be called\n");
    5758    fprintf(stdout, "FAIL: Timed out waiting for notifyDone to be called\n");
     59}
     60
     61void TestEventPrinter::handleDumpMemoryHeader() const
     62{
     63    v8::HeapStatistics heapStatistics;
     64    printf("DumpJSHeap: %li\n", heapStatistics.used_heap_size());
    5865}
    5966
  • trunk/Tools/DumpRenderTree/chromium/TestEventPrinter.h

    r122901 r131327  
    4040    void handleTestHeader(const char* url) const;
    4141    void handleTimedOut() const;
     42    void handleDumpMemoryHeader() const;
    4243    void handleTextHeader() const;
    4344    void handleTextFooter() const;
  • trunk/Tools/DumpRenderTree/chromium/TestShell.cpp

    r129826 r131327  
    576576        dumpedAnything = true;
    577577        m_printer.handleTextHeader();
     578        m_printer.handleDumpMemoryHeader();
    578579        // Text output: the test page can request different types of output
    579580        // which we handle here.
Note: See TracChangeset for help on using the changeset viewer.