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:
Łukasz Magiera 2021-12-12 12:16:24 +01:00 committed by GitHub
commit dc26f3bd74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,7 @@ import (
"context"
"encoding/binary"
"fmt"
"os"
gruntime "runtime"
"time"
@ -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