This repository has been archived by the owner on Feb 22, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 248
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1) Install https://chrome.google.com/webstore/detail/web-tracing-framework/gmdhhnlkjmknaopofnadmoamhmnlicme 2) Enjoy the visibility Closes #1354
- Loading branch information
Showing
22 changed files
with
372 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
library wtf_test_app; | ||
This comment has been minimized.
Sorry, something went wrong. |
||
|
||
import 'package:angular/wtf.dart'; | ||
import 'dart:html'; | ||
import 'dart:js' show context; | ||
|
||
main() { | ||
traceInit(context); | ||
var _main = traceCreateScope('main()'); | ||
var _querySelector = traceCreateScope('Node#querySelector()'); | ||
var _DivElement = traceCreateScope('DivElement()'); | ||
var _ElementText = traceCreateScope('Element#text'); | ||
var _NodeAppend = traceCreateScope('Node#append()'); | ||
var scope = traceEnter(_main); | ||
var s = traceEnter(_querySelector); | ||
BodyElement body = window.document.querySelector('body'); | ||
traceLeave(s); | ||
|
||
s = traceEnter(_DivElement); | ||
var div = new DivElement(); | ||
traceLeave(s); | ||
|
||
s = traceEnter(_ElementText); | ||
div.text = 'Hello WTF! (enabled: ${wtfEnabled})'; | ||
traceLeave(s); | ||
|
||
s = traceEnter(_NodeAppend); | ||
body.append(div); | ||
traceLeave(s); | ||
traceLeave(scope); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head lang="en"> | ||
<meta charset="UTF-8"> | ||
<title>WTF Test page</title> | ||
<script src="wtf.dart" type="application/dart"></script> | ||
<script src="packages/browser/dart.js"></script> | ||
<script src="packages/browser/interop.js"></script> | ||
</head> | ||
<body> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
@mhevery This file produces a number of dart2js warnings, could you look into them?