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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/profiler/ProfileDataGrid.js

Issue 2262303002: DevTooos: Profiler domain refactoring: Make deoptReason and positionTicks fields optional. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressing caseq comments Created 4 years, 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 280 North Inc. All Rights Reserved. 2 * Copyright (C) 2009 280 North Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 27 matching lines...) Expand all
38 38
39 this.tree = owningTree; 39 this.tree = owningTree;
40 /** @type {!Map<string, !WebInspector.ProfileDataGridNode>} */ 40 /** @type {!Map<string, !WebInspector.ProfileDataGridNode>} */
41 this.childrenByCallUID = new Map(); 41 this.childrenByCallUID = new Map();
42 this.lastComparator = null; 42 this.lastComparator = null;
43 43
44 this.callUID = profileNode.callUID; 44 this.callUID = profileNode.callUID;
45 this.self = profileNode.self; 45 this.self = profileNode.self;
46 this.total = profileNode.total; 46 this.total = profileNode.total;
47 this.functionName = WebInspector.beautifyFunctionName(profileNode.functionNa me); 47 this.functionName = WebInspector.beautifyFunctionName(profileNode.functionNa me);
48 this._deoptReason = profileNode.deoptReason && profileNode.deoptReason !== " no reason" ? profileNode.deoptReason : ""; 48 this._deoptReason = profileNode.deoptReason || "";
49 this.url = profileNode.url; 49 this.url = profileNode.url;
50 } 50 }
51 51
52 WebInspector.ProfileDataGridNode.prototype = { 52 WebInspector.ProfileDataGridNode.prototype = {
53 /** 53 /**
54 * @override 54 * @override
55 * @param {string} columnId 55 * @param {string} columnId
56 * @return {!Element} 56 * @return {!Element}
57 */ 57 */
58 createCell: function(columnId) 58 createCell: function(columnId)
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 * @return {string} 647 * @return {string}
648 */ 648 */
649 formatPercent: function(value, node) { }, 649 formatPercent: function(value, node) { },
650 650
651 /** 651 /**
652 * @param {!WebInspector.ProfileDataGridNode} node 652 * @param {!WebInspector.ProfileDataGridNode} node
653 * @return {?Element} 653 * @return {?Element}
654 */ 654 */
655 linkifyNode: function(node) { } 655 linkifyNode: function(node) { }
656 } 656 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698