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

Side by Side Diff: pkg/compiler/lib/src/dump_info.dart

Issue 2379573010: roll dart2js_info to 0.3.0 (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « DEPS ('k') | pkg/compiler/pubspec.yaml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library dump_info; 5 library dump_info;
6 6
7 import 'dart:convert' 7 import 'dart:convert'
8 show ChunkedConversionSink, JsonEncoder, StringConversionSink; 8 show ChunkedConversionSink, JsonEncoder, StringConversionSink;
9 9
10 import 'package:dart2js_info/info.dart'; 10 import 'package:dart2js_info/info.dart';
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 573
574 result.deferredFiles = compiler.deferredLoadTask.computeDeferredMap(); 574 result.deferredFiles = compiler.deferredLoadTask.computeDeferredMap();
575 stopwatch.stop(); 575 stopwatch.stop();
576 result.program = new ProgramInfo( 576 result.program = new ProgramInfo(
577 entrypoint: infoCollector._elementToInfo[compiler.mainFunction], 577 entrypoint: infoCollector._elementToInfo[compiler.mainFunction],
578 size: _programSize, 578 size: _programSize,
579 dart2jsVersion: 579 dart2jsVersion:
580 compiler.options.hasBuildId ? compiler.options.buildId : null, 580 compiler.options.hasBuildId ? compiler.options.buildId : null,
581 compilationMoment: new DateTime.now(), 581 compilationMoment: new DateTime.now(),
582 compilationDuration: compiler.measurer.wallClock.elapsed, 582 compilationDuration: compiler.measurer.wallClock.elapsed,
583 toJsonDuration: stopwatch.elapsedMilliseconds, 583 toJsonDuration:
584 dumpInfoDuration: this.timing, 584 new Duration(milliseconds: stopwatch.elapsedMilliseconds),
585 dumpInfoDuration: new Duration(milliseconds: this.timing),
585 noSuchMethodEnabled: compiler.backend.enabledNoSuchMethod, 586 noSuchMethodEnabled: compiler.backend.enabledNoSuchMethod,
586 minified: compiler.options.enableMinification); 587 minified: compiler.options.enableMinification);
587 588
588 ChunkedConversionSink<Object> sink = encoder.startChunkedConversion( 589 ChunkedConversionSink<Object> sink = encoder.startChunkedConversion(
589 new StringConversionSink.fromStringSink(buffer)); 590 new StringConversionSink.fromStringSink(buffer));
590 sink.add(new AllInfoJsonCodec().encode(result)); 591 sink.add(new AllInfoJsonCodec().encode(result));
591 compiler.reporter.reportInfo(NO_LOCATION_SPANNABLE, MessageKind.GENERIC, { 592 compiler.reporter.reportInfo(NO_LOCATION_SPANNABLE, MessageKind.GENERIC, {
592 'text': "View the dumped .info.json file at " 593 'text': "View the dumped .info.json file at "
593 "https://dart-lang.github.io/dump-info-visualizer" 594 "https://dart-lang.github.io/dump-info-visualizer"
594 }); 595 });
595 } 596 }
596 } 597 }
OLDNEW
« no previous file with comments | « DEPS ('k') | pkg/compiler/pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698