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

Unified Diff: tools/logreader.js

Issue 1179173009: Add support for running the profiler output processing scripts with node. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Passed a missing type arg through to CodeEntry Created 5 years, 6 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
Index: tools/logreader.js
diff --git a/tools/logreader.js b/tools/logreader.js
index 157a7fc8567df8af22bf4598c387805c77c3549d..81517ef870430d38bb2cef97ad154d7213a2818d 100644
--- a/tools/logreader.js
+++ b/tools/logreader.js
@@ -25,6 +25,11 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+// Node imports
+if (typeof module !== 'undefined' && module.exports) {
+ CsvParser = require('./csvparser');
+}
+
/**
* @fileoverview Log Reader is used to process log file produced by V8.
*/
@@ -233,3 +238,8 @@ LogReader.prototype.processLog_ = function(lines) {
}
}
};
+
+// Node exports
+if (typeof module !== 'undefined' && module.exports) {
+ module.exports = LogReader;
+}
« no previous file with comments | « tools/linux-tick-processor ('k') | tools/profile.js » ('j') | tools/profile.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698