提交 a1c201a5 编写于 作者: J Jeffrey Wilcke

Merge pull request #2517 from fjl/debug-go-trace

internal/debug: rename debug_trace to debug_goTrace
......@@ -131,9 +131,9 @@ func (h *HandlerT) StopCPUProfile() error {
return nil
}
// Trace turns on tracing for nsec seconds and writes
// GoTrace turns on tracing for nsec seconds and writes
// trace data to file.
func (h *HandlerT) Trace(file string, nsec uint) error {
func (h *HandlerT) GoTrace(file string, nsec uint) error {
if err := h.StartTrace(file); err != nil {
return err
}
......
......@@ -366,8 +366,8 @@ web3._extend({
params: 0
}),
new web3._extend.Method({
name: 'trace',
call: 'debug_trace',
name: 'goTrace',
call: 'debug_goTrace',
params: 2
}),
new web3._extend.Method({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册