【文件属性】:
文件名称:dlog:一个有用的库,用于将调试的结构化信息输出到控制台
文件大小:16KB
文件格式:ZIP
更新时间:2021-06-29 17:20:07
Dart
日志
一个有用的库,用于将调试的结构化信息输出到控制台
用法
信息可以构造为表格、树或 json。 因此可以衡量一个函数或一段代码的性能。
桌子
import "dart:math" as Math;
import 'package:dlog/dlog.dart' as dlog;
double rad(num deg) =>
deg * (Math.PI / 180);
main() {
// create new table and specify the column number
var table = new dlog.Table(1);
// you can add header names (optional)
// in this case the number of columns is changed to 3
t
【文件预览】:
dlog-master
----.gitignore(61B)
----pubspec.yaml(323B)
----LICENSE(1KB)
----CHANGELOG.md(356B)
----README.md(10KB)
----example()
--------time.dart(1KB)
--------table.dart(1KB)
--------json.dart(2KB)
--------tree.dart(748B)
----lib()
--------dlog.dart(214B)
--------src()
----test()
--------time_test.dart(269B)
--------tree_test.dart(1KB)
--------table_test.dart(3KB)
--------json_test.dart(2KB)