improve performance of gdebug

This commit is contained in:
John
2019-10-30 15:12:19 +08:00
parent 6f9bbbf416
commit 38ee5f7d53
4 changed files with 145 additions and 34 deletions

View File

@ -6,6 +6,7 @@ import (
)
func main() {
gdebug.PrintStack()
fmt.Println(gdebug.CallerPackage())
fmt.Println(gdebug.CallerFunction())
}

View File

@ -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()
}