Changeset 146210 in webkit


Ignore:
Timestamp:
Mar 19, 2013 9:06:42 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: Fix heap profiler performance tests.
https://bugs.webkit.org/show_bug.cgi?id=112701

Patch by Alexei Filippov <alph@chromium.org> on 2013-03-19
Reviewed by Yury Semikhatsky.

The tests were broken by profile types refactoring.

  • inspector/heap-snapshot-performance-test.js:

(test.performanceTest.step0):
(test.performanceTest.step1):

Location:
trunk/PerformanceTests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/PerformanceTests/ChangeLog

    r144785 r146210  
     12013-03-19  Alexei Filippov  <alph@chromium.org>
     2
     3        Web Inspector: Fix heap profiler performance tests.
     4        https://bugs.webkit.org/show_bug.cgi?id=112701
     5
     6        Reviewed by Yury Semikhatsky.
     7
     8        The tests were broken by profile types refactoring.
     9
     10        * inspector/heap-snapshot-performance-test.js:
     11        (test.performanceTest.step0):
     12        (test.performanceTest.step1):
     13
    1142013-03-05  Eric Seidel  <eric@webkit.org>
    215
  • trunk/PerformanceTests/inspector/heap-snapshot-performance-test.js

    r143580 r146210  
    3434            timer.finish(backendTimerCookie);
    3535            transferTimerCookie = timer.start("transfer-snapshot");
    36             var profiles = WebInspector.panels.profiles.getProfiles("HEAP");
     36            var type = WebInspector.panels.profiles.getProfileType("HEAP");
     37            var profiles = type.getProfiles();
    3738            WebInspector.panels.profiles._showProfile(profiles[profiles.length - 1]);
    38             InspectorTest.addSniffer(WebInspector.panels.profiles, "_finishHeapSnapshot", step1);
     39            InspectorTest.addSniffer(type, "finishHeapSnapshot", step1);
    3940        }
    4041
     
    4445            showTimerCookie = timer.start("show-snapshot");
    4546            var panel = WebInspector.panels.profiles;
    46             var profile = panel._profilesIdMap[panel._makeKey(uid, WebInspector.HeapSnapshotProfileType.TypeId)];
     47            var profile = panel.getProfile("HEAP", uid);
    4748            profile.load(step2); // Add load callback.
    4849        }
Note: See TracChangeset for help on using the changeset viewer.