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

Side by Side Diff: fuzzer/res/imp/fuzzer-info-sk.html

Issue 1695803002: Improve fuzz counts (Closed) Base URL: https://skia.googlesource.com/buildbot@dedup-first
Patch Set: Add docs Created 4 years, 10 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
« no previous file with comments | « fuzzer/res/imp/fuzzer-filter-sk.html ('k') | fuzzer/res/imp/fuzzer-summary-sk.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!-- 1 <!--
2 The res/js/fuzzer.js file must be included before this file. 2 The res/js/fuzzer.js file must be included before this file.
3 3
4 This in an HTML Import-able file that contains the definition 4 This in an HTML Import-able file that contains the definition
5 of the following elements: 5 of the following elements:
6 6
7 <fuzzer-info-sk> 7 <fuzzer-info-sk>
8 8
9 This element will query /json/details for all of the detailed fuzz reports of a given file (passed in by query params) and displayed. 9 This element will query /json/details for all of the detailed fuzz reports of a given file (passed in by query params) and displayed.
10 This may be further scoped by function, line number and fuzz-type (either bina ry or api) 10 This may be further scoped by function, line number and fuzz-type (either bina ry or api)
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 _getURLParams: function(category) { 102 _getURLParams: function(category) {
103 return { 103 return {
104 "category": category, 104 "category": category,
105 "file": fuzzer.paramFromPath("file"), 105 "file": fuzzer.paramFromPath("file"),
106 "func": fuzzer.paramFromPath("func"), 106 "func": fuzzer.paramFromPath("func"),
107 "line": fuzzer.paramFromPath("line"), 107 "line": fuzzer.paramFromPath("line"),
108 "name": fuzzer.paramFromPath("name"), 108 "name": fuzzer.paramFromPath("name"),
109 }; 109 };
110 }, 110 },
111 _shouldExpand: function(){ 111 _shouldExpand: function(){
112 return fuzzer.paramFromPath("file").length > 0; 112 return fuzzer.paramFromPath("file").length > 0 || fuzzer.paramFromPath(" name").length > 0;
113 }, 113 },
114 _byCount: function(a, b) { 114 _byCount: function(a, b) {
115 // Higher counts come first 115 // Higher counts come first
116 return b.count - a.count; 116 return b.count - a.count;
117 }, 117 },
118 _filter: function(fileDetails, include, exclude){ 118 _filter: function(fileDetails, include, exclude){
119 if (this._empty(fileDetails)) { 119 if (this._empty(fileDetails)) {
120 return []; 120 return [];
121 } 121 }
122 exclude = exclude || []; 122 exclude = exclude || [];
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 159
160 return retVal; 160 return retVal;
161 161
162 }, 162 },
163 _empty: function(a) { 163 _empty: function(a) {
164 return !a || !a.length; 164 return !a || !a.length;
165 } 165 }
166 }); 166 });
167 </script> 167 </script>
168 </dom-module> 168 </dom-module>
OLDNEW
« no previous file with comments | « fuzzer/res/imp/fuzzer-filter-sk.html ('k') | fuzzer/res/imp/fuzzer-summary-sk.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698