OLD | NEW |
---|---|
(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 '../lib/channels.dart'; | |
ahe
2014/09/02 13:44:23
I don't think this import is correct. It should pr
lukechurch
2014/09/02 19:52:36
Done.
| |
6 import '../lib/io_channels.dart'; | |
ahe
2014/09/02 13:44:22
Ditto.
lukechurch
2014/09/02 19:52:36
Done.
| |
7 import '../lib/microlytics.dart'; | |
ahe
2014/09/02 13:44:23
Ditto.
lukechurch
2014/09/02 19:52:36
Done.
| |
8 | |
9 void main() { | |
10 | |
ahe
2014/09/02 13:44:23
Remove extra line.
lukechurch
2014/09/02 19:52:36
Done.
| |
11 // Create the channel that will be used to communicate to analytics | |
ahe
2014/09/02 13:44:22
Add period.
lukechurch
2014/09/02 19:52:36
Done.
| |
12 var channel = new RateLimitingBufferedChannel( | |
13 new HttpClientChannel(),packetsPerSecond: 1.0); | |
14 | |
15 // Create the logger | |
ahe
2014/09/02 13:44:22
Period.
lukechurch
2014/09/02 19:52:36
Done.
| |
16 var lg = new AnalyticsLogger(channel, "555", "UA-XXXXX-X", "test", "1.2"); | |
ahe
2014/09/02 13:44:23
Pass analytics ID in as command-line argument?
lukechurch
2014/09/02 19:52:36
Good suggestion - I think in this case it will onl
| |
17 | |
ahe
2014/09/02 13:44:23
Remove extra line.
lukechurch
2014/09/02 19:52:36
Done.
| |
18 | |
19 // Send some messages | |
ahe
2014/09/02 13:44:23
Period.
lukechurch
2014/09/02 19:52:36
Done.
| |
20 lg.logAnonymousEvent("hello", "world"); | |
21 lg.logAnonymousTiming("loader", "var", 42); | |
22 | |
ahe
2014/09/02 13:44:23
Remove extra line.
lukechurch
2014/09/02 19:52:36
Done.
| |
23 } | |
OLD | NEW |