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

Unified Diff: tools/tickprocessor.js

Issue 574015: Profiler tick processor: exploit d8's readline to avoid reading (Closed)
Patch Set: Re-upload Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/logreader.js ('k') | tools/windows-tick-processor.bat » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/tickprocessor.js
diff --git a/tools/tickprocessor.js b/tools/tickprocessor.js
index 73bdf354e44a6a9418fa6b7e0860ad0dae916d80..a40d95d29f6fababe6727dcf3a651ef3c15fbf2f 100644
--- a/tools/tickprocessor.js
+++ b/tools/tickprocessor.js
@@ -262,8 +262,10 @@ TickProcessor.prototype.isJsCode = function(name) {
TickProcessor.prototype.processLogFile = function(fileName) {
this.lastLogFileName_ = fileName;
- var contents = readFile(fileName);
- this.processLogChunk(contents);
+ var line;
+ while (line = readline()) {
+ this.processLogLine(line);
+ }
};
« no previous file with comments | « tools/logreader.js ('k') | tools/windows-tick-processor.bat » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698