|
Refactor 'dart:profiler' UserTag API
- Each isolate starts off with a 'Default' UserTag set.
- A null tag cannot be set.
- Calls to clearCurrentTag() should be replaced with a call to UserTag.defaultTag.makeCurrent().
- makeCurrent returns the previously current tag.
This allows for the following pattern to work:
callee() {
var old = calleeTag.makeCurrent();
...
old.makeCurrent();
}
caller() {
var old = callerTag.makeCurrent();
...
callee();
assert(getCurrentTag() == callerTag);
...
old.makeCurrent();
}
R=iposva@google.com, zra@google.com
Committed: https://code.google.com/p/dart/source/detail?r=35810
Total comments: 15
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+172 lines, -157 lines) |
Patch |
|
M |
runtime/lib/profiler.cc
|
View
|
1
|
1 chunk |
+9 lines, -11 lines |
0 comments
|
Download
|
|
M |
runtime/lib/profiler.dart
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
runtime/vm/bootstrap_natives.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
runtime/vm/dart.cc
|
View
|
1
2
3
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/intrinsifier.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
runtime/vm/intrinsifier_arm.cc
|
View
|
1
2
3
|
1 chunk |
+16 lines, -23 lines |
0 comments
|
Download
|
|
M |
runtime/vm/intrinsifier_arm64.cc
|
View
|
1
2
3
4
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
runtime/vm/intrinsifier_ia32.cc
|
View
|
1
2
3
|
1 chunk |
+14 lines, -24 lines |
0 comments
|
Download
|
|
M |
runtime/vm/intrinsifier_mips.cc
|
View
|
1
2
3
|
1 chunk |
+20 lines, -24 lines |
0 comments
|
Download
|
|
M |
runtime/vm/intrinsifier_x64.cc
|
View
|
1
2
3
|
2 chunks |
+17 lines, -21 lines |
0 comments
|
Download
|
|
M |
runtime/vm/isolate.h
|
View
|
1
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
|
M |
runtime/vm/isolate.cc
|
View
|
1
|
2 chunks |
+1 line, -7 lines |
0 comments
|
Download
|
|
M |
runtime/vm/object.h
|
View
|
1
2
3
|
2 chunks |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
runtime/vm/object.cc
|
View
|
1
2
3
|
2 chunks |
+17 lines, -7 lines |
0 comments
|
Download
|
|
M |
runtime/vm/object_store.h
|
View
|
1
|
2 chunks |
+14 lines, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/object_store.cc
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
runtime/vm/profiler.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
runtime/vm/raw_object.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/symbols.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
runtime/vm/tags.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
sdk/lib/profiler/profiler.dart
|
View
|
1
2
3
|
1 chunk |
+18 lines, -19 lines |
0 comments
|
Download
|
|
M |
tests/lib/profiler/user_tags_test.dart
|
View
|
1
2
|
5 chunks |
+30 lines, -11 lines |
0 comments
|
Download
|
Total messages: 5 (0 generated)
|