1 Star 0 Fork 0

似是故人来/v8go

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
cpuprofilenode.go 1.54 KB
一键复制 编辑 原始数据 按行查看 历史
zhengkaikai 提交于 2022-07-22 21:31 . 包名
// 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]
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/hasika/v8go.git
[email protected]:hasika/v8go.git
hasika
v8go
v8go
master

搜索帮助