Merge pull request #7750 from filecoin-project/gstuart/lotus-vm-gas-tracing-env-var
Expose EnableGasTracing as an env_var
This commit is contained in:
commit
dc26f3bd74
@ -5,6 +5,7 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"os"
|
||||||
gruntime "runtime"
|
gruntime "runtime"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@ -52,7 +53,7 @@ func (m *Message) ValueReceived() abi.TokenAmount {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// EnableGasTracing, if true, outputs gas tracing in execution traces.
|
// 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 {
|
type Runtime struct {
|
||||||
rt5.Message
|
rt5.Message
|
||||||
|
Loading…
Reference in New Issue
Block a user