timing

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NavigationTiming struct {
	LoadTime          int64
	ReadyStart        int64
	DomReadyTime      int64
	ScriptExecuteTime int64
	RequestTime       int64
	ResponseTime      int64
	InitDomTreeTime   int64
	LoadEventTime     int64
	UnloadEventTime   int64
	AppCacheTime      int64
	ConnectTime       int64
	LookupDomainTime  int64
	RedirectTime      int64
}

NavigationTiming .

func ParseNavigationTiming

func ParseNavigationTiming(nt string) *NavigationTiming

ParseNavigationTiming .

type PerformanceTiming

type PerformanceTiming struct {
	FirstPaintTime             int64
	ConnectEnd                 int64
	ConnectStart               int64
	DomComplete                int64
	DomContentLoadedEventEnd   int64
	DomContentLoadedEventStart int64
	DomInteractive             int64
	DomLoading                 int64
	DomainLookupEnd            int64
	DomainLookupStart          int64
	FetchStart                 int64
	LoadEventEnd               int64
	LoadEventStart             int64
	NavigationStart            int64
	RedirectEnd                int64
	RedirectStart              int64
	RequestStart               int64
	ResponseEnd                int64
	ResponseStart              int64
	SecureConnectionStart      int64
	UnloadEventEnd             int64
	UnloadEventStart           int64
}

PerformanceTiming .

func ParsePerformanceTiming

func ParsePerformanceTiming(pt string) *PerformanceTiming

ParsePerformanceTiming .

type ResourceTiming

type ResourceTiming struct {
	Name                  string
	InitiatorType         int64
	StartTime             int64
	ResponseEnd           int64
	ResponseStart         int64
	RequestStart          int64
	ConnectEnd            int64
	SecureConnectionStart int64
	ConnectStart          int64
	DomainLookupEnd       int64
	DomainLookupStart     int64
	RedirectEnd           int64
	RedirectStart         int64
}

ResourceTiming .

type ResourceTimingList

type ResourceTimingList []ResourceTiming

ResourceTimingList .

func ParseResourceTiming

func ParseResourceTiming(s string) (ResourceTimingList, error)

ParseResourceTiming .

func (ResourceTimingList) DNSCount

func (rt ResourceTimingList) DNSCount() int64

DNSCount .

func (ResourceTimingList) Timing

func (rt ResourceTimingList) Timing() int64

Timing .

Jump to

Keyboard shortcuts

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