Skip to content

@eightkk/vue-weave / core / resourceLoadHistogram

Function: resourceLoadHistogram() ​

resourceLoadHistogram(segments, resourceIds?): Map<string, ResourceLoadHistogram>

Defined in: src/core/timeline.ts:923

Group load segments by resource for a histogram band. Segments are sorted by start and must not overlap within a resource. When resourceIds is supplied, every segment must reference one of them and each ID gets an entry.

Parameters ​

segments ​

readonly TimelineLoadSegment[]

resourceIds? ​

Iterable<string, any, any>

Returns ​

Map<string, ResourceLoadHistogram>

Released under the MIT License.