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

Side by Side Diff: chrome/test/data/third_party/spaceport/bin/json2csv.js

Issue 10154006: Add test data for spaceport benchmark. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 var jsBase = __dirname + '/../js';
2 var un = require(jsBase + '/unrequire');
3 un.require.config({ baseUrl: jsBase });
4
5 var input = process.stdin;
6 var output = process.stdout;
7
8 un.require([ 'fullReport' ], function (fullReport) {
9 var jsonData = '';
10 input.on('data', function (data) {
11 jsonData += data.toString('utf8');
12 });
13
14 input.on('end', function () {
15 var data = JSON.parse(jsonData);
16 var csv = fullReport.csvReport(data.userData.results, data.userData.agen tMetadata);
17 output.write(csv);
18 });
19 input.resume();
20 });
OLDNEW
« no previous file with comments | « chrome/test/data/third_party/spaceport/bin/condense.js ('k') | chrome/test/data/third_party/spaceport/index.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698