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

Side by Side Diff: runtime/lib/profiler.dart

Issue 230863005: Initial UserTag and dart:profiler library (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
« no previous file with comments | « runtime/lib/profiler.cc ('k') | runtime/lib/profiler_sources.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
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.
4
5 import "dart:_internal";
6
7 patch class UserTag {
8 /* patch */ factory UserTag(String label) {
9 return new _UserTag(label);
10 }
11 }
12
13
14 class _UserTag implements UserTag {
15 factory _UserTag(String label) native "UserTag_new";
16 String get label native "UserTag_label";
17 void makeCurrent() native "UserTag_makeCurrent";
18 }
19
20 patch UserTag getCurrentTag() => _getCurrentTag();
21 UserTag _getCurrentTag() native "Profiler_getCurrentTag";
22
23 patch UserTag clearCurrentTag() => _clearCurrentTag();
24 UserTag _clearCurrentTag() native "Profiler_clearCurrentTag";
OLDNEW
« no previous file with comments | « runtime/lib/profiler.cc ('k') | runtime/lib/profiler_sources.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698