API

Interface IPerfViewerCollectionStrategy

Defines the general structure of what is necessary for a collection strategy.

interface IPerfViewerCollectionStrategy {
    dispose: () => void;
    getData: () => number;
    id: string;
}
Index
dispose: () => void

Function which does any necessary cleanup. Called when performanceViewerCollector.dispose() is called.

getData: () => number

Function which gets the data for the strategy.

id: string

The id of the strategy.