Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: LayoutTests/inspector/profiler/heap-snapshot-test.js

Issue 187823003: DevTools: Implement recursive viewport for the Heap Summary view (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated comments. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 var initialize_HeapSnapshotTest = function() { 1 var initialize_HeapSnapshotTest = function() {
2 2
3 InspectorTest.createHeapSnapshotMockFactories = function() { 3 InspectorTest.createHeapSnapshotMockFactories = function() {
4 4
5 InspectorTest.createJSHeapSnapshotMockObject = function() 5 InspectorTest.createJSHeapSnapshotMockObject = function()
6 { 6 {
7 return { 7 return {
8 _rootNodeIndex: 0, 8 _rootNodeIndex: 0,
9 _nodeTypeOffset: 0, 9 _nodeTypeOffset: 0,
10 _nodeNameOffset: 1, 10 _nodeNameOffset: 1,
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after
682 return node; 682 return node;
683 } 683 }
684 return null; 684 return null;
685 }; 685 };
686 686
687 InspectorTest.switchToView = function(title, callback) 687 InspectorTest.switchToView = function(title, callback)
688 { 688 {
689 callback = InspectorTest.safeWrap(callback); 689 callback = InspectorTest.safeWrap(callback);
690 var view = WebInspector.panels.profiles.visibleView; 690 var view = WebInspector.panels.profiles.visibleView;
691 view.changeView(title, callback); 691 view.changeView(title, callback);
692 // Increase the grid container height so the viewport don't limit the number of nodes.
693 InspectorTest._currentGrid().scrollContainer.style.height = "10000px";
692 }; 694 };
693 695
694 InspectorTest.takeAndOpenSnapshot = function(generator, callback) 696 InspectorTest.takeAndOpenSnapshot = function(generator, callback)
695 { 697 {
696 callback = InspectorTest.safeWrap(callback); 698 callback = InspectorTest.safeWrap(callback);
697 var snapshot = generator(); 699 var snapshot = generator();
698 var profileType = WebInspector.ProfileTypeRegistry.instance.heapSnapshotPro fileType; 700 var profileType = WebInspector.ProfileTypeRegistry.instance.heapSnapshotPro fileType;
699 function pushGeneratedSnapshot(reportProgress, callback) 701 function pushGeneratedSnapshot(reportProgress, callback)
700 { 702 {
701 var profile = profileType.profileBeingRecorded(); 703 var profile = profileType.profileBeingRecorded();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 function sortingComplete() 738 function sortingComplete()
737 { 739 {
738 dataGrid.removeEventListener("sorting complete", sortingComplete, nu ll); 740 dataGrid.removeEventListener("sorting complete", sortingComplete, nu ll);
739 callback(); 741 callback();
740 } 742 }
741 dataGrid.addEventListener("sorting complete", sortingComplete, null); 743 dataGrid.addEventListener("sorting complete", sortingComplete, null);
742 } 744 }
743 }; 745 };
744 746
745 }; 747 };
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/HeapSnapshotDataGrids.js » ('j') | Source/devtools/front_end/HeapSnapshotDataGrids.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698