文件名称:tgo:功能跟踪器,以增强您的调试
文件大小:78KB
文件格式:ZIP
更新时间:2024-04-07 23:47:52
go golang developer-tools callgraph function-tracer
tgo:功能跟踪器,以增强您的调试 例子 在此示例中, tracer.Start()和tracer.Stop()之间tracer.Start()的函数。 package main import ( "fmt" "os" "strconv" "github.com/ks888/tgo/lib/tracer" ) func fib ( n int ) int { if n == 0 || n == 1 { return n } return fib ( n - 1 ) + fib ( n - 2 ) } func main () { tracer . Start () var n int64 if len ( os . Args ) > 1 { n , _ = strconv . ParseInt ( os . Args [ 1 ], 10 , 64 ) }
【文件预览】:
tgo-master
----.travis.yml(277B)
----tracee()
--------process.go(26KB)
--------binary_linux.go(2KB)
--------moduledata.go(5KB)
--------process_darwin.go(161B)
--------process_linux.go(67B)
--------binary_darwin.go(2KB)
--------value.go(15KB)
--------version.go(1KB)
--------binary_test.go(16KB)
--------value_test.go(7KB)
--------version_test.go(2KB)
--------process_test.go(16KB)
--------binary.go(24KB)
----log()
--------logger.go(995B)
----cmd()
--------tgo()
----testutils()
--------testdata()
--------testutils.go(13KB)
----tracer()
--------breakpoints.go(5KB)
--------controller.go(19KB)
--------breakpoints_test.go(6KB)
--------tracingpoints.go(2KB)
--------tracingpoints_test.go(728B)
--------controller_test.go(10KB)
----LICENSE(11KB)
----lib()
--------tracer()
----service()
--------service_test.go(2KB)
--------service.go(4KB)
----README.md(9KB)
----debugapi()
--------client_linux.go(10KB)
--------client.go(2KB)
--------client_linux_test.go(9KB)
--------client_darwin_test.go(20KB)
--------client_darwin.go(23KB)
----_examples()
--------simple.go(241B)
--------fib_test.go(207B)
--------qsort.go(790B)
--------fib.go(348B)
--------.gitignore(58B)
--------tracelevel.go(266B)