mirror of
https://github.com/google/go-jsonnet.git
synced 2025-08-10 08:17:11 +02:00
set profilerOpts var in main
This commit is contained in:
parent
cd4115e2af
commit
c23a8b76e7
@ -395,8 +395,8 @@ func main() {
|
||||
cmd.StartCPUProfile()
|
||||
defer cmd.StopCPUProfile()
|
||||
|
||||
jsonnet.StartStackProfile()
|
||||
defer jsonnet.StopStackProfile()
|
||||
profilerOpts := jsonnet.StartStackProfile()
|
||||
defer jsonnet.StopStackProfile(profilerOpts)
|
||||
|
||||
vm := jsonnet.MakeVM()
|
||||
vm.ErrorFormatter.SetColorFormatter(color.New(color.FgRed).Fprintf)
|
||||
|
Loading…
Reference in New Issue
Block a user