Skip to content

Commit

Permalink
Make Lotus vm gas tracing an env var
Browse files Browse the repository at this point in the history
  • Loading branch information
geoff-vball committed Dec 10, 2021
1 parent a0d76bd commit 9108828
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chain/vm/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"context"
"encoding/binary"
"fmt"
"os"
gruntime "runtime"
"time"

Expand Down Expand Up @@ -52,7 +53,7 @@ func (m *Message) ValueReceived() abi.TokenAmount {
}

// EnableGasTracing, if true, outputs gas tracing in execution traces.
var EnableGasTracing = false
var EnableGasTracing = os.Getenv("LOTUS_VM_ENABLE_GAS_TRACING_VERY_SLOW") == "1"

type Runtime struct {
rt5.Message
Expand Down

0 comments on commit 9108828

Please sign in to comment.