Documentation ¶
Overview ¶
Package performance measurement ability with sub-millisecond resolution.
This includes:
* An insights into the latency of certain events triggered by user interactions.
* Detect presence of "long tasks" that monopolize the UI thread for extended periods of time and block other critical tasks from being executed - e.g. reacting to user input.
* Complete timing information on navigation of a document.
* Capture a series of key moments (First Paint, First Contentful Paint) during pageload which developers care about.
* Let a server to communicate performance metrics about the request-response cycle to the user agent. It also standardizes a JavaScript interface to enable applications to collect, process, and act on these metrics to optimize application delivery.
Index ¶
- Constants
- func SupportedEntryTypes() *javascript.FrozenArray
- type Entry
- type EventCounts
- func (_this *EventCounts) Entries() (_result *EventCountsEntryIterator)
- func (_this *EventCounts) ForEach(callback *EventCountsForEach, optionalThisForCallbackArgument interface{})
- func (_this *EventCounts) Get(key string) (_result *uint)
- func (_this *EventCounts) Has(key string) (_result bool)
- func (_this *EventCounts) JSValue() js.Value
- func (_this *EventCounts) Keys() (_result *EventCountsKeyIterator)
- func (_this *EventCounts) Size() int
- func (_this *EventCounts) Values() (_result *EventCountsValueIterator)
- type EventCountsEntryIterator
- type EventCountsEntryIteratorValue
- type EventCountsForEach
- type EventCountsForEachFunc
- type EventCountsKeyIterator
- type EventCountsKeyIteratorValue
- type EventCountsValueIterator
- type EventCountsValueIteratorValue
- type EventTiming
- type LongTaskTiming
- type Mark
- type MarkOptions
- type Measure
- type MeasureOptions
- type Navigation
- type NavigationTiming
- func (_this *NavigationTiming) DomComplete() float64
- func (_this *NavigationTiming) DomContentLoadedEventEnd() float64
- func (_this *NavigationTiming) DomContentLoadedEventStart() float64
- func (_this *NavigationTiming) DomInteractive() float64
- func (_this *NavigationTiming) LoadEventEnd() float64
- func (_this *NavigationTiming) LoadEventStart() float64
- func (_this *NavigationTiming) RedirectCount() int
- func (_this *NavigationTiming) ToJSON3() (_result *javascript.Object)
- func (_this *NavigationTiming) Type() NavigationType
- func (_this *NavigationTiming) UnloadEventEnd() float64
- func (_this *NavigationTiming) UnloadEventStart() float64
- type NavigationType
- type Observer
- type ObserverCallback
- type ObserverCallbackFunc
- type ObserverEntryList
- type ObserverInit
- type Performance
- func (_this *Performance) AddEventResourceTimingBufferFull(listener func(event *domcore.Event, currentTarget *Performance)) js.Func
- func (_this *Performance) ClearMarks(markName *string)
- func (_this *Performance) ClearMeasures(measureName *string)
- func (_this *Performance) ClearResourceTimings()
- func (_this *Performance) EventCounts() *EventCounts
- func (_this *Performance) GetEntries() (_result []*Entry)
- func (_this *Performance) GetEntriesByName(name string, _type *string) (_result []*Entry)
- func (_this *Performance) GetEntriesByType(_type string) (_result []*Entry)
- func (_this *Performance) Mark(markName string, markOptions *MarkOptions) (_result *Mark)
- func (_this *Performance) Measure(measureName string, startOrMeasureOptions *Union, endMark *string) (_result *Measure)
- func (_this *Performance) Navigation() *Navigation
- func (_this *Performance) Now() (_result float64)
- func (_this *Performance) OnResourceTimingBufferFull() domcore.EventHandlerFunc
- func (_this *Performance) SetOnResourceTimingBufferFull(listener func(event *domcore.Event, currentTarget *Performance)) js.Func
- func (_this *Performance) SetResourceTimingBufferSize(maxSize uint)
- func (_this *Performance) TimeOrigin() float64
- func (_this *Performance) Timing() *Timing
- func (_this *Performance) ToJSON() (_result *javascript.Object)
- type PerformancePaintTiming
- type ResourceTiming
- func (_this *ResourceTiming) ConnectEnd() float64
- func (_this *ResourceTiming) ConnectStart() float64
- func (_this *ResourceTiming) DecodedBodySize() int
- func (_this *ResourceTiming) DomainLookupEnd() float64
- func (_this *ResourceTiming) DomainLookupStart() float64
- func (_this *ResourceTiming) EncodedBodySize() int
- func (_this *ResourceTiming) FetchStart() float64
- func (_this *ResourceTiming) InitiatorType() string
- func (_this *ResourceTiming) NextHopProtocol() string
- func (_this *ResourceTiming) RedirectEnd() float64
- func (_this *ResourceTiming) RedirectStart() float64
- func (_this *ResourceTiming) RequestStart() float64
- func (_this *ResourceTiming) ResponseEnd() float64
- func (_this *ResourceTiming) ResponseStart() float64
- func (_this *ResourceTiming) SecureConnectionStart() float64
- func (_this *ResourceTiming) ServerTiming() *javascript.FrozenArray
- func (_this *ResourceTiming) ToJSON2() (_result *javascript.Object)
- func (_this *ResourceTiming) TransferSize() int
- func (_this *ResourceTiming) WorkerStart() float64
- type ServerTiming
- type TaskAttributionTiming
- type Timing
- func (_this *Timing) ConnectEnd() int
- func (_this *Timing) ConnectStart() int
- func (_this *Timing) DomComplete() int
- func (_this *Timing) DomContentLoadedEventEnd() int
- func (_this *Timing) DomContentLoadedEventStart() int
- func (_this *Timing) DomInteractive() int
- func (_this *Timing) DomLoading() int
- func (_this *Timing) DomainLookupEnd() int
- func (_this *Timing) DomainLookupStart() int
- func (_this *Timing) FetchStart() int
- func (_this *Timing) JSValue() js.Value
- func (_this *Timing) LoadEventEnd() int
- func (_this *Timing) LoadEventStart() int
- func (_this *Timing) NavigationStart() int
- func (_this *Timing) RedirectEnd() int
- func (_this *Timing) RedirectStart() int
- func (_this *Timing) RequestStart() int
- func (_this *Timing) ResponseEnd() int
- func (_this *Timing) ResponseStart() int
- func (_this *Timing) SecureConnectionStart() int
- func (_this *Timing) ToJSON() (_result *javascript.Object)
- func (_this *Timing) UnloadEventEnd() int
- func (_this *Timing) UnloadEventStart() int
- type Union
Constants ¶
const ()
Variables ¶
This section is empty.
Functions ¶
func SupportedEntryTypes ¶
func SupportedEntryTypes() *javascript.FrozenArray
SupportedEntryTypes returning attribute 'supportedEntryTypes' with type javascript.FrozenArray (idl: FrozenArray).
Types ¶
type Entry ¶
class: PerformanceEntry
func EntryFromJS ¶
EntryFromJS is casting a js.Value into Entry.
func EntryFromWrapper ¶
EntryFromJS is casting from something that holds a js.Value into Entry.
func (*Entry) EntryType ¶
EntryType returning attribute 'entryType' with type string (idl: DOMString).
func (*Entry) StartTime ¶
StartTime returning attribute 'startTime' with type float64 (idl: double).
func (*Entry) ToJSON ¶
func (_this *Entry) ToJSON() (_result *javascript.Object)
type EventCounts ¶
class: EventCounts
func EventCountsFromJS ¶
func EventCountsFromJS(value js.Value) *EventCounts
EventCountsFromJS is casting a js.Value into EventCounts.
func EventCountsFromWrapper ¶
func EventCountsFromWrapper(input core.Wrapper) *EventCounts
EventCountsFromJS is casting from something that holds a js.Value into EventCounts.
func (*EventCounts) Entries ¶
func (_this *EventCounts) Entries() (_result *EventCountsEntryIterator)
func (*EventCounts) ForEach ¶
func (_this *EventCounts) ForEach(callback *EventCountsForEach, optionalThisForCallbackArgument interface{})
func (*EventCounts) Get ¶
func (_this *EventCounts) Get(key string) (_result *uint)
func (*EventCounts) Has ¶
func (_this *EventCounts) Has(key string) (_result bool)
func (*EventCounts) JSValue ¶
func (_this *EventCounts) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*EventCounts) Keys ¶
func (_this *EventCounts) Keys() (_result *EventCountsKeyIterator)
func (*EventCounts) Size ¶
func (_this *EventCounts) Size() int
Size returning attribute 'size' with type int (idl: long).
func (*EventCounts) Values ¶
func (_this *EventCounts) Values() (_result *EventCountsValueIterator)
type EventCountsEntryIterator ¶
type EventCountsEntryIterator struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: EventCountsEntryIterator
func EventCountsEntryIteratorFromJS ¶
func EventCountsEntryIteratorFromJS(value js.Value) *EventCountsEntryIterator
EventCountsEntryIteratorFromJS is casting a js.Value into EventCountsEntryIterator.
func EventCountsEntryIteratorFromWrapper ¶
func EventCountsEntryIteratorFromWrapper(input core.Wrapper) *EventCountsEntryIterator
EventCountsEntryIteratorFromJS is casting from something that holds a js.Value into EventCountsEntryIterator.
func (*EventCountsEntryIterator) JSValue ¶
func (_this *EventCountsEntryIterator) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*EventCountsEntryIterator) Next ¶
func (_this *EventCountsEntryIterator) Next() (_result *EventCountsEntryIteratorValue)
type EventCountsEntryIteratorValue ¶
dictionary: EventCountsEntryIteratorValue
func EventCountsEntryIteratorValueFromJS ¶
func EventCountsEntryIteratorValueFromJS(value js.Value) *EventCountsEntryIteratorValue
EventCountsEntryIteratorValueFromJS is allocating a new EventCountsEntryIteratorValue object and copy all values in the value javascript object.
func (*EventCountsEntryIteratorValue) JSValue ¶
func (_this *EventCountsEntryIteratorValue) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type EventCountsForEach ¶
EventCountsForEach is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func EventCountsForEachToJS ¶
func EventCountsForEachToJS(callback EventCountsForEachFunc) *EventCountsForEach
type EventCountsForEachFunc ¶
type EventCountsForEachFunc func(currentValue uint, currentKey string, listObj *EventCounts)
callback: EventCountsForEach
func EventCountsForEachFromJS ¶
func EventCountsForEachFromJS(_value js.Value) EventCountsForEachFunc
type EventCountsKeyIterator ¶
type EventCountsKeyIterator struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: EventCountsKeyIterator
func EventCountsKeyIteratorFromJS ¶
func EventCountsKeyIteratorFromJS(value js.Value) *EventCountsKeyIterator
EventCountsKeyIteratorFromJS is casting a js.Value into EventCountsKeyIterator.
func EventCountsKeyIteratorFromWrapper ¶
func EventCountsKeyIteratorFromWrapper(input core.Wrapper) *EventCountsKeyIterator
EventCountsKeyIteratorFromJS is casting from something that holds a js.Value into EventCountsKeyIterator.
func (*EventCountsKeyIterator) JSValue ¶
func (_this *EventCountsKeyIterator) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*EventCountsKeyIterator) Next ¶
func (_this *EventCountsKeyIterator) Next() (_result *EventCountsKeyIteratorValue)
type EventCountsKeyIteratorValue ¶
dictionary: EventCountsKeyIteratorValue
func EventCountsKeyIteratorValueFromJS ¶
func EventCountsKeyIteratorValueFromJS(value js.Value) *EventCountsKeyIteratorValue
EventCountsKeyIteratorValueFromJS is allocating a new EventCountsKeyIteratorValue object and copy all values in the value javascript object.
func (*EventCountsKeyIteratorValue) JSValue ¶
func (_this *EventCountsKeyIteratorValue) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type EventCountsValueIterator ¶
type EventCountsValueIterator struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: EventCountsValueIterator
func EventCountsValueIteratorFromJS ¶
func EventCountsValueIteratorFromJS(value js.Value) *EventCountsValueIterator
EventCountsValueIteratorFromJS is casting a js.Value into EventCountsValueIterator.
func EventCountsValueIteratorFromWrapper ¶
func EventCountsValueIteratorFromWrapper(input core.Wrapper) *EventCountsValueIterator
EventCountsValueIteratorFromJS is casting from something that holds a js.Value into EventCountsValueIterator.
func (*EventCountsValueIterator) JSValue ¶
func (_this *EventCountsValueIterator) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*EventCountsValueIterator) Next ¶
func (_this *EventCountsValueIterator) Next() (_result *EventCountsValueIteratorValue)
type EventCountsValueIteratorValue ¶
dictionary: EventCountsValueIteratorValue
func EventCountsValueIteratorValueFromJS ¶
func EventCountsValueIteratorValueFromJS(value js.Value) *EventCountsValueIteratorValue
EventCountsValueIteratorValueFromJS is allocating a new EventCountsValueIteratorValue object and copy all values in the value javascript object.
func (*EventCountsValueIteratorValue) JSValue ¶
func (_this *EventCountsValueIteratorValue) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type EventTiming ¶
type EventTiming struct {
Entry
}
class: PerformanceEventTiming
func EventTimingFromJS ¶
func EventTimingFromJS(value js.Value) *EventTiming
EventTimingFromJS is casting a js.Value into EventTiming.
func EventTimingFromWrapper ¶
func EventTimingFromWrapper(input core.Wrapper) *EventTiming
EventTimingFromJS is casting from something that holds a js.Value into EventTiming.
func (*EventTiming) Cancelable ¶
func (_this *EventTiming) Cancelable() bool
Cancelable returning attribute 'cancelable' with type bool (idl: boolean).
func (*EventTiming) ProcessingEnd ¶
func (_this *EventTiming) ProcessingEnd() float64
ProcessingEnd returning attribute 'processingEnd' with type float64 (idl: double).
func (*EventTiming) ProcessingStart ¶
func (_this *EventTiming) ProcessingStart() float64
ProcessingStart returning attribute 'processingStart' with type float64 (idl: double).
type LongTaskTiming ¶
type LongTaskTiming struct {
Entry
}
class: PerformanceLongTaskTiming
func LongTaskTimingFromJS ¶
func LongTaskTimingFromJS(value js.Value) *LongTaskTiming
LongTaskTimingFromJS is casting a js.Value into LongTaskTiming.
func LongTaskTimingFromWrapper ¶
func LongTaskTimingFromWrapper(input core.Wrapper) *LongTaskTiming
LongTaskTimingFromJS is casting from something that holds a js.Value into LongTaskTiming.
func (*LongTaskTiming) Attribution ¶
func (_this *LongTaskTiming) Attribution() *javascript.FrozenArray
Attribution returning attribute 'attribution' with type javascript.FrozenArray (idl: FrozenArray).
type Mark ¶
type Mark struct {
Entry
}
class: PerformanceMark
func MarkFromWrapper ¶
MarkFromJS is casting from something that holds a js.Value into Mark.
func NewPerformanceMark ¶
func NewPerformanceMark(markName string, markOptions *MarkOptions) (_result *Mark)
type MarkOptions ¶
dictionary: PerformanceMarkOptions
func MarkOptionsFromJS ¶
func MarkOptionsFromJS(value js.Value) *MarkOptions
MarkOptionsFromJS is allocating a new MarkOptions object and copy all values in the value javascript object.
func (*MarkOptions) JSValue ¶
func (_this *MarkOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type Measure ¶
type Measure struct {
Entry
}
class: PerformanceMeasure
func MeasureFromJS ¶
MeasureFromJS is casting a js.Value into Measure.
func MeasureFromWrapper ¶
MeasureFromJS is casting from something that holds a js.Value into Measure.
type MeasureOptions ¶
dictionary: PerformanceMeasureOptions
func MeasureOptionsFromJS ¶
func MeasureOptionsFromJS(value js.Value) *MeasureOptions
MeasureOptionsFromJS is allocating a new MeasureOptions object and copy all values in the value javascript object.
func (*MeasureOptions) JSValue ¶
func (_this *MeasureOptions) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type Navigation ¶
class: PerformanceNavigation
func NavigationFromJS ¶
func NavigationFromJS(value js.Value) *Navigation
NavigationFromJS is casting a js.Value into Navigation.
func NavigationFromWrapper ¶
func NavigationFromWrapper(input core.Wrapper) *Navigation
NavigationFromJS is casting from something that holds a js.Value into Navigation.
func (*Navigation) JSValue ¶
func (_this *Navigation) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*Navigation) RedirectCount ¶
func (_this *Navigation) RedirectCount() int
RedirectCount returning attribute 'redirectCount' with type int (idl: unsigned short).
func (*Navigation) ToJSON ¶
func (_this *Navigation) ToJSON() (_result *javascript.Object)
func (*Navigation) Type ¶
func (_this *Navigation) Type() int
Type returning attribute 'type' with type int (idl: unsigned short).
type NavigationTiming ¶
type NavigationTiming struct {
}class: PerformanceNavigationTiming
func NavigationTimingFromJS ¶
func NavigationTimingFromJS(value js.Value) *NavigationTiming
NavigationTimingFromJS is casting a js.Value into NavigationTiming.
func NavigationTimingFromWrapper ¶
func NavigationTimingFromWrapper(input core.Wrapper) *NavigationTiming
NavigationTimingFromJS is casting from something that holds a js.Value into NavigationTiming.
func (*NavigationTiming) DomComplete ¶
func (_this *NavigationTiming) DomComplete() float64
DomComplete returning attribute 'domComplete' with type float64 (idl: double).
func (*NavigationTiming) DomContentLoadedEventEnd ¶
func (_this *NavigationTiming) DomContentLoadedEventEnd() float64
DomContentLoadedEventEnd returning attribute 'domContentLoadedEventEnd' with type float64 (idl: double).
func (*NavigationTiming) DomContentLoadedEventStart ¶
func (_this *NavigationTiming) DomContentLoadedEventStart() float64
DomContentLoadedEventStart returning attribute 'domContentLoadedEventStart' with type float64 (idl: double).
func (*NavigationTiming) DomInteractive ¶
func (_this *NavigationTiming) DomInteractive() float64
DomInteractive returning attribute 'domInteractive' with type float64 (idl: double).
func (*NavigationTiming) LoadEventEnd ¶
func (_this *NavigationTiming) LoadEventEnd() float64
LoadEventEnd returning attribute 'loadEventEnd' with type float64 (idl: double).
func (*NavigationTiming) LoadEventStart ¶
func (_this *NavigationTiming) LoadEventStart() float64
LoadEventStart returning attribute 'loadEventStart' with type float64 (idl: double).
func (*NavigationTiming) RedirectCount ¶
func (_this *NavigationTiming) RedirectCount() int
RedirectCount returning attribute 'redirectCount' with type int (idl: unsigned short).
func (*NavigationTiming) ToJSON3 ¶
func (_this *NavigationTiming) ToJSON3() (_result *javascript.Object)
func (*NavigationTiming) Type ¶
func (_this *NavigationTiming) Type() NavigationType
Type returning attribute 'type' with type NavigationType (idl: NavigationType).
func (*NavigationTiming) UnloadEventEnd ¶
func (_this *NavigationTiming) UnloadEventEnd() float64
UnloadEventEnd returning attribute 'unloadEventEnd' with type float64 (idl: double).
func (*NavigationTiming) UnloadEventStart ¶
func (_this *NavigationTiming) UnloadEventStart() float64
UnloadEventStart returning attribute 'unloadEventStart' with type float64 (idl: double).
type NavigationType ¶
type NavigationType int
enum: NavigationType
const ()
func NavigationTypeFromJS ¶
func NavigationTypeFromJS(value js.Value) NavigationType
NavigationTypeFromJS is converting a javascript value into a NavigationType enum value.
func (*NavigationType) JSValue ¶
func (this *NavigationType) JSValue() js.Value
JSValue is converting this enum into a javascript object
func (NavigationType) Value ¶
func (this NavigationType) Value() string
Value is converting this into javascript defined string value
type Observer ¶
class: PerformanceObserver
func NewPerformanceObserver ¶
func NewPerformanceObserver(callback *ObserverCallback) (_result *Observer)
func ObserverFromJS ¶
ObserverFromJS is casting a js.Value into Observer.
func ObserverFromWrapper ¶
ObserverFromJS is casting from something that holds a js.Value into Observer.
func (*Observer) Disconnect ¶
func (_this *Observer) Disconnect()
func (*Observer) Observe ¶
func (_this *Observer) Observe(options *ObserverInit)
func (*Observer) TakeRecords ¶
type ObserverCallback ¶
ObserverCallback is a javascript function type.
Call Release() when done to release resouces allocated to this type.
func ObserverCallbackToJS ¶
func ObserverCallbackToJS(callback ObserverCallbackFunc) *ObserverCallback
type ObserverCallbackFunc ¶
type ObserverCallbackFunc func(entries *ObserverEntryList, observer *Observer)
callback: PerformanceObserverCallback
func ObserverCallbackFromJS ¶
func ObserverCallbackFromJS(_value js.Value) ObserverCallbackFunc
type ObserverEntryList ¶
type ObserverEntryList struct { // Value_JS holds a reference to a javascript value Value_JS js.Value }
class: PerformanceObserverEntryList
func ObserverEntryListFromJS ¶
func ObserverEntryListFromJS(value js.Value) *ObserverEntryList
ObserverEntryListFromJS is casting a js.Value into ObserverEntryList.
func ObserverEntryListFromWrapper ¶
func ObserverEntryListFromWrapper(input core.Wrapper) *ObserverEntryList
ObserverEntryListFromJS is casting from something that holds a js.Value into ObserverEntryList.
func (*ObserverEntryList) GetEntries ¶
func (_this *ObserverEntryList) GetEntries() (_result []*Entry)
func (*ObserverEntryList) GetEntriesByName ¶
func (_this *ObserverEntryList) GetEntriesByName(name string, _type *string) (_result []*Entry)
func (*ObserverEntryList) GetEntriesByType ¶
func (_this *ObserverEntryList) GetEntriesByType(_type string) (_result []*Entry)
func (*ObserverEntryList) JSValue ¶
func (_this *ObserverEntryList) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
type ObserverInit ¶
dictionary: PerformanceObserverInit
func ObserverInitFromJS ¶
func ObserverInitFromJS(value js.Value) *ObserverInit
ObserverInitFromJS is allocating a new ObserverInit object and copy all values in the value javascript object.
func (*ObserverInit) JSValue ¶
func (_this *ObserverInit) JSValue() js.Value
JSValue is allocating a new javascript object and copy all values
type Performance ¶
type Performance struct {
domcore.EventTarget
}
class: Performance
func PerformanceFromJS ¶
func PerformanceFromJS(value js.Value) *Performance
PerformanceFromJS is casting a js.Value into Performance.
func PerformanceFromWrapper ¶
func PerformanceFromWrapper(input core.Wrapper) *Performance
PerformanceFromJS is casting from something that holds a js.Value into Performance.
func (*Performance) AddEventResourceTimingBufferFull ¶
func (_this *Performance) AddEventResourceTimingBufferFull(listener func(event *domcore.Event, currentTarget *Performance)) js.Func
AddResourceTimingBufferFull is adding doing AddEventListener for 'ResourceTimingBufferFull' on target. This method is returning allocated javascript function that need to be released.
func (*Performance) ClearMarks ¶
func (_this *Performance) ClearMarks(markName *string)
func (*Performance) ClearMeasures ¶
func (_this *Performance) ClearMeasures(measureName *string)
func (*Performance) ClearResourceTimings ¶
func (_this *Performance) ClearResourceTimings()
func (*Performance) EventCounts ¶
func (_this *Performance) EventCounts() *EventCounts
EventCounts returning attribute 'eventCounts' with type EventCounts (idl: EventCounts).
func (*Performance) GetEntries ¶
func (_this *Performance) GetEntries() (_result []*Entry)
func (*Performance) GetEntriesByName ¶
func (_this *Performance) GetEntriesByName(name string, _type *string) (_result []*Entry)
func (*Performance) GetEntriesByType ¶
func (_this *Performance) GetEntriesByType(_type string) (_result []*Entry)
func (*Performance) Mark ¶
func (_this *Performance) Mark(markName string, markOptions *MarkOptions) (_result *Mark)
func (*Performance) Measure ¶
func (_this *Performance) Measure(measureName string, startOrMeasureOptions *Union, endMark *string) (_result *Measure)
func (*Performance) Navigation ¶
func (_this *Performance) Navigation() *Navigation
Navigation returning attribute 'navigation' with type Navigation (idl: PerformanceNavigation).
func (*Performance) Now ¶
func (_this *Performance) Now() (_result float64)
func (*Performance) OnResourceTimingBufferFull ¶
func (_this *Performance) OnResourceTimingBufferFull() domcore.EventHandlerFunc
OnResourceTimingBufferFull returning attribute 'onresourcetimingbufferfull' with type domcore.EventHandler (idl: EventHandlerNonNull).
func (*Performance) SetOnResourceTimingBufferFull ¶
func (_this *Performance) SetOnResourceTimingBufferFull(listener func(event *domcore.Event, currentTarget *Performance)) js.Func
SetOnResourceTimingBufferFull is assigning a function to 'onresourcetimingbufferfull'. This This method is returning allocated javascript function that need to be released.
func (*Performance) SetResourceTimingBufferSize ¶
func (_this *Performance) SetResourceTimingBufferSize(maxSize uint)
func (*Performance) TimeOrigin ¶
func (_this *Performance) TimeOrigin() float64
TimeOrigin returning attribute 'timeOrigin' with type float64 (idl: double).
func (*Performance) Timing ¶
func (_this *Performance) Timing() *Timing
Timing returning attribute 'timing' with type Timing (idl: PerformanceTiming).
func (*Performance) ToJSON ¶
func (_this *Performance) ToJSON() (_result *javascript.Object)
type PerformancePaintTiming ¶
type PerformancePaintTiming struct {
Entry
}
class: PerformancePaintTiming
func PerformancePaintTimingFromJS ¶
func PerformancePaintTimingFromJS(value js.Value) *PerformancePaintTiming
PerformancePaintTimingFromJS is casting a js.Value into PerformancePaintTiming.
func PerformancePaintTimingFromWrapper ¶
func PerformancePaintTimingFromWrapper(input core.Wrapper) *PerformancePaintTiming
PerformancePaintTimingFromJS is casting from something that holds a js.Value into PerformancePaintTiming.
type ResourceTiming ¶
type ResourceTiming struct {
Entry
}
class: PerformanceResourceTiming
func ResourceTimingFromJS ¶
func ResourceTimingFromJS(value js.Value) *ResourceTiming
ResourceTimingFromJS is casting a js.Value into ResourceTiming.
func ResourceTimingFromWrapper ¶
func ResourceTimingFromWrapper(input core.Wrapper) *ResourceTiming
ResourceTimingFromJS is casting from something that holds a js.Value into ResourceTiming.
func (*ResourceTiming) ConnectEnd ¶
func (_this *ResourceTiming) ConnectEnd() float64
ConnectEnd returning attribute 'connectEnd' with type float64 (idl: double).
func (*ResourceTiming) ConnectStart ¶
func (_this *ResourceTiming) ConnectStart() float64
ConnectStart returning attribute 'connectStart' with type float64 (idl: double).
func (*ResourceTiming) DecodedBodySize ¶
func (_this *ResourceTiming) DecodedBodySize() int
DecodedBodySize returning attribute 'decodedBodySize' with type int (idl: unsigned long long).
func (*ResourceTiming) DomainLookupEnd ¶
func (_this *ResourceTiming) DomainLookupEnd() float64
DomainLookupEnd returning attribute 'domainLookupEnd' with type float64 (idl: double).
func (*ResourceTiming) DomainLookupStart ¶
func (_this *ResourceTiming) DomainLookupStart() float64
DomainLookupStart returning attribute 'domainLookupStart' with type float64 (idl: double).
func (*ResourceTiming) EncodedBodySize ¶
func (_this *ResourceTiming) EncodedBodySize() int
EncodedBodySize returning attribute 'encodedBodySize' with type int (idl: unsigned long long).
func (*ResourceTiming) FetchStart ¶
func (_this *ResourceTiming) FetchStart() float64
FetchStart returning attribute 'fetchStart' with type float64 (idl: double).
func (*ResourceTiming) InitiatorType ¶
func (_this *ResourceTiming) InitiatorType() string
InitiatorType returning attribute 'initiatorType' with type string (idl: DOMString).
func (*ResourceTiming) NextHopProtocol ¶
func (_this *ResourceTiming) NextHopProtocol() string
NextHopProtocol returning attribute 'nextHopProtocol' with type string (idl: DOMString).
func (*ResourceTiming) RedirectEnd ¶
func (_this *ResourceTiming) RedirectEnd() float64
RedirectEnd returning attribute 'redirectEnd' with type float64 (idl: double).
func (*ResourceTiming) RedirectStart ¶
func (_this *ResourceTiming) RedirectStart() float64
RedirectStart returning attribute 'redirectStart' with type float64 (idl: double).
func (*ResourceTiming) RequestStart ¶
func (_this *ResourceTiming) RequestStart() float64
RequestStart returning attribute 'requestStart' with type float64 (idl: double).
func (*ResourceTiming) ResponseEnd ¶
func (_this *ResourceTiming) ResponseEnd() float64
ResponseEnd returning attribute 'responseEnd' with type float64 (idl: double).
func (*ResourceTiming) ResponseStart ¶
func (_this *ResourceTiming) ResponseStart() float64
ResponseStart returning attribute 'responseStart' with type float64 (idl: double).
func (*ResourceTiming) SecureConnectionStart ¶
func (_this *ResourceTiming) SecureConnectionStart() float64
SecureConnectionStart returning attribute 'secureConnectionStart' with type float64 (idl: double).
func (*ResourceTiming) ServerTiming ¶
func (_this *ResourceTiming) ServerTiming() *javascript.FrozenArray
ServerTiming returning attribute 'serverTiming' with type javascript.FrozenArray (idl: FrozenArray).
func (*ResourceTiming) ToJSON2 ¶
func (_this *ResourceTiming) ToJSON2() (_result *javascript.Object)
func (*ResourceTiming) TransferSize ¶
func (_this *ResourceTiming) TransferSize() int
TransferSize returning attribute 'transferSize' with type int (idl: unsigned long long).
func (*ResourceTiming) WorkerStart ¶
func (_this *ResourceTiming) WorkerStart() float64
WorkerStart returning attribute 'workerStart' with type float64 (idl: double).
type ServerTiming ¶
class: PerformanceServerTiming
func ServerTimingFromJS ¶
func ServerTimingFromJS(value js.Value) *ServerTiming
ServerTimingFromJS is casting a js.Value into ServerTiming.
func ServerTimingFromWrapper ¶
func ServerTimingFromWrapper(input core.Wrapper) *ServerTiming
ServerTimingFromJS is casting from something that holds a js.Value into ServerTiming.
func (*ServerTiming) Description ¶
func (_this *ServerTiming) Description() string
Description returning attribute 'description' with type string (idl: DOMString).
func (*ServerTiming) Duration ¶
func (_this *ServerTiming) Duration() float64
Duration returning attribute 'duration' with type float64 (idl: double).
func (*ServerTiming) JSValue ¶
func (_this *ServerTiming) JSValue() js.Value
JSValue returns the js.Value or js.Null() if _this is nil
func (*ServerTiming) Name ¶
func (_this *ServerTiming) Name() string
Name returning attribute 'name' with type string (idl: DOMString).
func (*ServerTiming) ToJSON ¶
func (_this *ServerTiming) ToJSON() (_result *javascript.Object)
type TaskAttributionTiming ¶
type TaskAttributionTiming struct {
Entry
}
class: TaskAttributionTiming
func TaskAttributionTimingFromJS ¶
func TaskAttributionTimingFromJS(value js.Value) *TaskAttributionTiming
TaskAttributionTimingFromJS is casting a js.Value into TaskAttributionTiming.
func TaskAttributionTimingFromWrapper ¶
func TaskAttributionTimingFromWrapper(input core.Wrapper) *TaskAttributionTiming
TaskAttributionTimingFromJS is casting from something that holds a js.Value into TaskAttributionTiming.
func (*TaskAttributionTiming) ContainerId ¶
func (_this *TaskAttributionTiming) ContainerId() string
ContainerId returning attribute 'containerId' with type string (idl: DOMString).
func (*TaskAttributionTiming) ContainerName ¶
func (_this *TaskAttributionTiming) ContainerName() string
ContainerName returning attribute 'containerName' with type string (idl: DOMString).
func (*TaskAttributionTiming) ContainerSrc ¶
func (_this *TaskAttributionTiming) ContainerSrc() string
ContainerSrc returning attribute 'containerSrc' with type string (idl: DOMString).
func (*TaskAttributionTiming) ContainerType ¶
func (_this *TaskAttributionTiming) ContainerType() string
ContainerType returning attribute 'containerType' with type string (idl: DOMString).
type Timing ¶
class: PerformanceTiming
func TimingFromJS ¶
TimingFromJS is casting a js.Value into Timing.
func TimingFromWrapper ¶
TimingFromJS is casting from something that holds a js.Value into Timing.
func (*Timing) ConnectEnd ¶
ConnectEnd returning attribute 'connectEnd' with type int (idl: unsigned long long).
func (*Timing) ConnectStart ¶
ConnectStart returning attribute 'connectStart' with type int (idl: unsigned long long).
func (*Timing) DomComplete ¶
DomComplete returning attribute 'domComplete' with type int (idl: unsigned long long).
func (*Timing) DomContentLoadedEventEnd ¶
DomContentLoadedEventEnd returning attribute 'domContentLoadedEventEnd' with type int (idl: unsigned long long).
func (*Timing) DomContentLoadedEventStart ¶
DomContentLoadedEventStart returning attribute 'domContentLoadedEventStart' with type int (idl: unsigned long long).
func (*Timing) DomInteractive ¶
DomInteractive returning attribute 'domInteractive' with type int (idl: unsigned long long).
func (*Timing) DomLoading ¶
DomLoading returning attribute 'domLoading' with type int (idl: unsigned long long).
func (*Timing) DomainLookupEnd ¶
DomainLookupEnd returning attribute 'domainLookupEnd' with type int (idl: unsigned long long).
func (*Timing) DomainLookupStart ¶
DomainLookupStart returning attribute 'domainLookupStart' with type int (idl: unsigned long long).
func (*Timing) FetchStart ¶
FetchStart returning attribute 'fetchStart' with type int (idl: unsigned long long).
func (*Timing) LoadEventEnd ¶
LoadEventEnd returning attribute 'loadEventEnd' with type int (idl: unsigned long long).
func (*Timing) LoadEventStart ¶
LoadEventStart returning attribute 'loadEventStart' with type int (idl: unsigned long long).
func (*Timing) NavigationStart ¶
NavigationStart returning attribute 'navigationStart' with type int (idl: unsigned long long).
func (*Timing) RedirectEnd ¶
RedirectEnd returning attribute 'redirectEnd' with type int (idl: unsigned long long).
func (*Timing) RedirectStart ¶
RedirectStart returning attribute 'redirectStart' with type int (idl: unsigned long long).
func (*Timing) RequestStart ¶
RequestStart returning attribute 'requestStart' with type int (idl: unsigned long long).
func (*Timing) ResponseEnd ¶
ResponseEnd returning attribute 'responseEnd' with type int (idl: unsigned long long).
func (*Timing) ResponseStart ¶
ResponseStart returning attribute 'responseStart' with type int (idl: unsigned long long).
func (*Timing) SecureConnectionStart ¶
SecureConnectionStart returning attribute 'secureConnectionStart' with type int (idl: unsigned long long).
func (*Timing) ToJSON ¶
func (_this *Timing) ToJSON() (_result *javascript.Object)
func (*Timing) UnloadEventEnd ¶
UnloadEventEnd returning attribute 'unloadEventEnd' with type int (idl: unsigned long long).
func (*Timing) UnloadEventStart ¶
UnloadEventStart returning attribute 'unloadEventStart' with type int (idl: unsigned long long).