OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 this.stateFilter_ = stateFilter; | 197 this.stateFilter_ = stateFilter; |
198 this.snapshotLogProcessor_ = snapshotLogProcessor; | 198 this.snapshotLogProcessor_ = snapshotLogProcessor; |
199 this.deserializedEntriesNames_ = []; | 199 this.deserializedEntriesNames_ = []; |
200 var ticks = this.ticks_ = | 200 var ticks = this.ticks_ = |
201 { total: 0, unaccounted: 0, excluded: 0, gc: 0 }; | 201 { total: 0, unaccounted: 0, excluded: 0, gc: 0 }; |
202 | 202 |
203 distortion = parseInt(distortion); | 203 distortion = parseInt(distortion); |
204 // Convert picoseconds to nanoseconds. | 204 // Convert picoseconds to nanoseconds. |
205 this.distortion_per_entry = isNaN(distortion) ? 0 : (distortion / 1000); | 205 this.distortion_per_entry = isNaN(distortion) ? 0 : (distortion / 1000); |
206 this.distortion = 0; | 206 this.distortion = 0; |
207 var rangelimits = range.split(","); | 207 var rangelimits = range ? range.split(",") : []; |
208 var range_start = parseInt(rangelimits[0]); | 208 var range_start = parseInt(rangelimits[0]); |
209 var range_end = parseInt(rangelimits[1]); | 209 var range_end = parseInt(rangelimits[1]); |
210 // Convert milliseconds to nanoseconds. | 210 // Convert milliseconds to nanoseconds. |
211 this.range_start = isNaN(range_start) ? -Infinity : (range_start * 1000); | 211 this.range_start = isNaN(range_start) ? -Infinity : (range_start * 1000); |
212 this.range_end = isNaN(range_end) ? Infinity : (range_end * 1000) | 212 this.range_end = isNaN(range_end) ? Infinity : (range_end * 1000) |
213 | 213 |
214 V8Profile.prototype.handleUnknownCode = function( | 214 V8Profile.prototype.handleUnknownCode = function( |
215 operation, addr, opt_stackPos) { | 215 operation, addr, opt_stackPos) { |
216 var op = Profile.Operation; | 216 var op = Profile.Operation; |
217 switch (operation) { | 217 switch (operation) { |
(...skipping 686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
904 if (arg !== synArg && dispatch === this.argsDispatch_[synArg]) { | 904 if (arg !== synArg && dispatch === this.argsDispatch_[synArg]) { |
905 synonims.push(synArg); | 905 synonims.push(synArg); |
906 delete this.argsDispatch_[synArg]; | 906 delete this.argsDispatch_[synArg]; |
907 } | 907 } |
908 } | 908 } |
909 print(' ' + padRight(synonims.join(', '), 20) + dispatch[2]); | 909 print(' ' + padRight(synonims.join(', '), 20) + dispatch[2]); |
910 } | 910 } |
911 quit(2); | 911 quit(2); |
912 }; | 912 }; |
913 | 913 |
OLD | NEW |