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

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

Issue 124053002: Adding Angular and dependent packages for testing (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 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 part of angular.perf;
2
3 class DevToolsTimelineProfiler extends Profiler {
4 final dom.Console console = dom.window.console;
5 String prefix = '';
6
7 int startTimer(String name, [String extraData]) {
8 console.time('$prefix$name');
9 prefix = '$prefix ';
10 }
11
12 void stopTimer(dynamic name) {
13 prefix = prefix.length > 0 ? prefix.substring(0, prefix.length - 2) : prefix ;
14 console.timeEnd('$prefix$name');
15 }
16
17 void markTime(String name, [String extraData]) {
18 console.timeStamp('$prefix$name');
19 }
20 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698