profiler

package
v0.0.0-...-491ee29 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PRoot        = "Root"
	PUpdate      = "Update"
	PSched       = "Scheduler"
	PDraw        = "Draw"
	PSleep       = "Sleep"
	PInput       = "Input"
	PSwapBuffers = "Swap Buffers"
)
View Source
const (
	VAOBinds = StatisticType(iota)
	VBOBinds
	IBOBinds
	FBOBinds
	DrawCalls
	VerticesDrawn
	VertexUpload
	SpritesDrawn
)

Variables

This section is empty.

Functions

func AddStat

func AddStat(typ StatisticType, amount int64)

func EndGroup

func EndGroup()

func GetPreviousStat

func GetPreviousStat(typ StatisticType) int64

func GetStat

func GetStat(typ StatisticType) int64

func IncrementStat

func IncrementStat(typ StatisticType)

func Reset

func Reset()

func ResetStats

func ResetStats()

func StartGroup

func StartGroup(funcName string, pType ProfileType)

Types

type PNode

type PNode struct {
	NodeName string
	NodeType ProfileType

	Nodes []*PNode

	TimeTotal float64
	// contains filtered or unexported fields
}

func GetLastProfileResult

func GetLastProfileResult() *PNode

func (*PNode) GetFullName

func (node *PNode) GetFullName() string

type ProfileType

type ProfileType string

type StatisticType

type StatisticType int

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL