代码拉取完成,页面将自动刷新
// Copyright 2021 the v8go contributors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package v8go
type CPUProfileNode struct {
// The resource name for script from where the function originates.
scriptResourceName string
// The function name (empty string for anonymous functions.)
functionName string
// The number of the line where the function originates.
lineNumber int
// The number of the column where the function originates.
columnNumber int
// The children node of this node.
children []*CPUProfileNode
// The parent node of this node.
parent *CPUProfileNode
}
// Returns function name (empty string for anonymous functions.)
func (c *CPUProfileNode) GetFunctionName() string {
return c.functionName
}
// Returns resource name for script from where the function originates.
func (c *CPUProfileNode) GetScriptResourceName() string {
return c.scriptResourceName
}
// Returns number of the line where the function originates.
func (c *CPUProfileNode) GetLineNumber() int {
return c.lineNumber
}
// Returns number of the column where the function originates.
func (c *CPUProfileNode) GetColumnNumber() int {
return c.columnNumber
}
// Retrieves the ancestor node, or nil if the root.
func (c *CPUProfileNode) GetParent() *CPUProfileNode {
return c.parent
}
func (c *CPUProfileNode) GetChildrenCount() int {
return len(c.children)
}
// Retrieves a child node by index.
func (c *CPUProfileNode) GetChild(index int) *CPUProfileNode {
return c.children[index]
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。