Skip to content

Commit

Permalink
Merge pull request #7750 from filecoin-project/gstuart/lotus-vm-gas-t…
Browse files Browse the repository at this point in the history
…racing-env-var

Expose EnableGasTracing as an env_var
  • Loading branch information
magik6k authored Dec 12, 2021
2 parents 8652f80 + 9108828 commit dc26f3b
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 dc26f3b

Please sign in to comment.