OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 | 262 |
263 TickProcessor.prototype.processLogFile = function(fileName) { | 263 TickProcessor.prototype.processLogFile = function(fileName) { |
264 this.lastLogFileName_ = fileName; | 264 this.lastLogFileName_ = fileName; |
265 var line; | 265 var line; |
266 while (line = readline()) { | 266 while (line = readline()) { |
267 this.processLogLine(line); | 267 this.processLogLine(line); |
268 } | 268 } |
269 }; | 269 }; |
270 | 270 |
271 | 271 |
| 272 TickProcessor.prototype.processLogFileInTest = function(fileName) { |
| 273 // Hack file name to avoid dealing with platform specifics. |
| 274 this.lastLogFileName_ = 'v8.log'; |
| 275 var contents = readFile(fileName); |
| 276 this.processLogChunk(contents); |
| 277 }; |
| 278 |
| 279 |
272 TickProcessor.prototype.processSharedLibrary = function( | 280 TickProcessor.prototype.processSharedLibrary = function( |
273 name, startAddr, endAddr) { | 281 name, startAddr, endAddr) { |
274 var entry = this.profile_.addLibrary(name, startAddr, endAddr); | 282 var entry = this.profile_.addLibrary(name, startAddr, endAddr); |
275 this.setCodeType(entry.getName(), 'SHARED_LIB'); | 283 this.setCodeType(entry.getName(), 'SHARED_LIB'); |
276 | 284 |
277 var self = this; | 285 var self = this; |
278 var libFuncs = this.cppEntriesProvider_.parseVmSymbols( | 286 var libFuncs = this.cppEntriesProvider_.parseVmSymbols( |
279 name, startAddr, endAddr, function(fName, fStart, fEnd) { | 287 name, startAddr, endAddr, function(fName, fStart, fEnd) { |
280 self.profile_.addStaticCode(fName, fStart, fEnd); | 288 self.profile_.addStaticCode(fName, fStart, fEnd); |
281 self.setCodeType(fName, 'CPP'); | 289 self.setCodeType(fName, 'CPP'); |
(...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
845 if (arg !== synArg && dispatch === this.argsDispatch_[synArg]) { | 853 if (arg !== synArg && dispatch === this.argsDispatch_[synArg]) { |
846 synonims.push(synArg); | 854 synonims.push(synArg); |
847 delete this.argsDispatch_[synArg]; | 855 delete this.argsDispatch_[synArg]; |
848 } | 856 } |
849 } | 857 } |
850 print(' ' + padRight(synonims.join(', '), 20) + dispatch[2]); | 858 print(' ' + padRight(synonims.join(', '), 20) + dispatch[2]); |
851 } | 859 } |
852 quit(2); | 860 quit(2); |
853 }; | 861 }; |
854 | 862 |
OLD | NEW |