From 5258785c81959109138ebeca613f12c277188abc Mon Sep 17 00:00:00 2001 From: Péter Szilágyi Date: Thu, 21 Dec 2017 13:56:11 +0200 Subject: cmd, core, eth/tracers: support fancier js tracing (#15516) * cmd, core, eth/tracers: support fancier js tracing * eth, internal/web3ext: rework trace API, concurrency, chain tracing * eth/tracers: add three more JavaScript tracers * eth/tracers, vendor: swap ottovm to duktape for tracing * core, eth, internal: finalize call tracer and needed extras * eth, tests: prestate tracer, call test suite, rewinding * vendor: fix windows builds for tracer js engine * vendor: temporary duktape fix * eth/tracers: fix up 4byte and evmdis tracer * vendor: pull in latest duktape with my upstream fixes * eth: fix some review comments * eth: rename rewind to reexec to make it more obvious * core/vm: terminate tracing using defers --- vendor/gopkg.in/olebedev/go-duktape.v3/duk_logging.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 vendor/gopkg.in/olebedev/go-duktape.v3/duk_logging.h (limited to 'vendor/gopkg.in/olebedev/go-duktape.v3/duk_logging.h') diff --git a/vendor/gopkg.in/olebedev/go-duktape.v3/duk_logging.h b/vendor/gopkg.in/olebedev/go-duktape.v3/duk_logging.h new file mode 100755 index 000000000..741fc9cb1 --- /dev/null +++ b/vendor/gopkg.in/olebedev/go-duktape.v3/duk_logging.h @@ -0,0 +1,20 @@ +#if !defined(DUK_LOGGING_H_INCLUDED) +#define DUK_LOGGING_H_INCLUDED + +#include "duktape.h" + +/* Log levels */ +#define DUK_LOG_TRACE 0 +#define DUK_LOG_DEBUG 1 +#define DUK_LOG_INFO 2 +#define DUK_LOG_WARN 3 +#define DUK_LOG_ERROR 4 +#define DUK_LOG_FATAL 5 + +/* No flags at the moment. */ + +extern void duk_logging_init(duk_context *ctx, duk_uint_t flags); +extern void duk_log_va(duk_context *ctx, duk_int_t level, const char *fmt, va_list ap); +extern void duk_log(duk_context *ctx, duk_int_t level, const char *fmt, ...); + +#endif /* DUK_LOGGING_H_INCLUDED */ -- cgit