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

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

Issue 257423008: Update all Angular libs (run update_all.sh). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
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 String startTimer(String name, [String extraData]) { 7 String startTimer(String name, [dynamic extraData]) {
8 console.time('$prefix$name'); 8 console.time('$prefix$name');
9 prefix = '$prefix '; 9 prefix = '$prefix ';
10 return name; 10 return name;
11 } 11 }
12 12
13 void stopTimer(dynamic name) { 13 void stopTimer(dynamic name) {
14 prefix = prefix.length > 0 ? prefix.substring(0, prefix.length - 2) : prefix ; 14 prefix = prefix.length > 0 ? prefix.substring(0, prefix.length - 2) : prefix ;
15 console.timeEnd('$prefix$name'); 15 console.timeEnd('$prefix$name');
16 } 16 }
17 17
18 void markTime(String name, [String extraData]) { 18 void markTime(String name, [dynamic extraData]) {
19 console.timeStamp('$prefix$name'); 19 console.timeStamp('$prefix$name');
20 } 20 }
21 } 21 }
OLDNEW
« no previous file with comments | « third_party/pkg/angular/lib/mock/zone.dart ('k') | third_party/pkg/angular/lib/perf/module.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698