mirror of
https://gitee.com/johng/gf
synced 2026-06-07 10:22:11 +08:00
improve performance of gdebug
This commit is contained in:
@ -6,6 +6,7 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
gdebug.PrintStack()
|
||||
fmt.Println(gdebug.CallerPackage())
|
||||
fmt.Println(gdebug.CallerFunction())
|
||||
}
|
||||
|
||||
@ -1,12 +1,7 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"github.com/gogf/gf/internal/intlog"
|
||||
)
|
||||
import "github.com/gogf/gf/debug/gdebug"
|
||||
|
||||
func main() {
|
||||
intlog.Print(1, 2, 3)
|
||||
intlog.Printf("%d", 1)
|
||||
intlog.Error(1)
|
||||
intlog.Errorf("%d", 1)
|
||||
gdebug.PrintStack()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user