Index: tools/tickprocessor.js |
diff --git a/tools/tickprocessor.js b/tools/tickprocessor.js |
index a40d95d29f6fababe6727dcf3a651ef3c15fbf2f..a3e14c3ae580aa9ca13d77c283a39b525d7eb35c 100644 |
--- a/tools/tickprocessor.js |
+++ b/tools/tickprocessor.js |
@@ -269,6 +269,14 @@ TickProcessor.prototype.processLogFile = function(fileName) { |
}; |
+TickProcessor.prototype.processLogFileInTest = function(fileName) { |
+ // Hack file name to avoid dealing with platform specifics. |
+ this.lastLogFileName_ = 'v8.log'; |
+ var contents = readFile(fileName); |
+ this.processLogChunk(contents); |
+}; |
+ |
+ |
TickProcessor.prototype.processSharedLibrary = function( |
name, startAddr, endAddr) { |
var entry = this.profile_.addLibrary(name, startAddr, endAddr); |