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

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

Issue 180843004: Revert revision 33053 (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 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 int startTimer(String name, [String extraData]) {
8 console.time('$prefix$name'); 8 console.time('$prefix$name');
9 prefix = '$prefix '; 9 prefix = '$prefix ';
10 return name;
11 } 10 }
12 11
13 void stopTimer(dynamic name) { 12 void stopTimer(dynamic name) {
14 prefix = prefix.length > 0 ? prefix.substring(0, prefix.length - 2) : prefix ; 13 prefix = prefix.length > 0 ? prefix.substring(0, prefix.length - 2) : prefix ;
15 console.timeEnd('$prefix$name'); 14 console.timeEnd('$prefix$name');
16 } 15 }
17 16
18 void markTime(String name, [String extraData]) { 17 void markTime(String name, [String extraData]) {
19 console.timeStamp('$prefix$name'); 18 console.timeStamp('$prefix$name');
20 } 19 }
21 } 20 }
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