Documentation
¶
Index ¶
- Constants
- func AddStat(typ StatisticType, amount int64)
- func EndGroup()
- func GetPreviousStat(typ StatisticType) int64
- func GetStat(typ StatisticType) int64
- func IncrementStat(typ StatisticType)
- func Reset()
- func ResetStats()
- func StartGroup(funcName string, pType ProfileType)
- type PNode
- type ProfileType
- type StatisticType
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 GetPreviousStat ¶
func GetPreviousStat(typ StatisticType) int64
func GetStat ¶
func GetStat(typ StatisticType) int64
func IncrementStat ¶
func IncrementStat(typ StatisticType)
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 ¶
type ProfileType ¶
type ProfileType string
type StatisticType ¶
type StatisticType int
Click to show internal directories.
Click to hide internal directories.