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

Side by Side Diff: third_party/pkg/angular/lib/perf/dev_tools_timeline.dart

Issue 180873006: Update the Angular/DI tests to latest from github. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Review feedback Created 6 years, 9 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
1 part of angular.perf; 1 part of angular.perf;
2 2
3 class DevToolsTimelineProfiler extends Profiler { 3 class DevToolsTimelineProfiler extends Profiler {
4 final dom.Console console = dom.window.console; 4 final dom.Console console = dom.window.console;
5 String prefix = ''; 5 String prefix = '';
6 6
7 int startTimer(String name, [String extraData]) { 7 String startTimer(String name, [String extraData]) {
8 console.time('$prefix$name'); 8 console.time('$prefix$name');
9 prefix = '$prefix '; 9 prefix = '$prefix ';
10 return name;
10 } 11 }
11 12
12 void stopTimer(dynamic name) { 13 void stopTimer(dynamic name) {
13 prefix = prefix.length > 0 ? prefix.substring(0, prefix.length - 2) : prefix ; 14 prefix = prefix.length > 0 ? prefix.substring(0, prefix.length - 2) : prefix ;
14 console.timeEnd('$prefix$name'); 15 console.timeEnd('$prefix$name');
15 } 16 }
16 17
17 void markTime(String name, [String extraData]) { 18 void markTime(String name, [String extraData]) {
18 console.timeStamp('$prefix$name'); 19 console.timeStamp('$prefix$name');
19 } 20 }
20 } 21 }
OLDNEW
« no previous file with comments | « third_party/pkg/angular/lib/mock/zone.dart ('k') | third_party/pkg/angular/lib/playback/playback_data.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698