/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ // @ts-check "use strict";
/** @type {Selector<RecordingSettings>} */ const getRecordingSettings = state => state.recordingSettings;
/** @type {Selector<number>} */ const getInterval = state => getRecordingSettings(state).interval;
/** @type {Selector<number>} */ const getEntries = state => getRecordingSettings(state).entries;
/** @type {Selector<string[]>} */ const getFeatures = state => getRecordingSettings(state).features;
/** @type {Selector<string[]>} */ const getThreads = state => getRecordingSettings(state).threads;
/** @type {Selector<string>} */ const getThreadsString = state => getThreads(state).join(",");
/** @type {Selector<string[]>} */ const getObjdirs = state => getRecordingSettings(state).objdirs;
/** @type {Selector<Presets>} */ const getPresets = state => getInitializedValues(state).presets;
/** @type {Selector<string>} */ const getPresetName = state => state.recordingSettings.presetName;
/** * When remote profiling, there will be a back button to the settings. * * @type {Selector<(() => void) | undefined>}
*/ const getOpenRemoteDevTools = state =>
getInitializedValues(state).openRemoteDevTools;
/** @type {Selector<InitializedValues>} */ const getInitializedValues = state => { const values = state.initializedValues; if (!values) { thrownew Error("The store must be initialized before it can be used.");
} return values;
};
/** @type {Selector<PageContext>} */ const getPageContext = state => getInitializedValues(state).pageContext;
/** @type {Selector<string[]>} */ const getSupportedFeatures = state =>
getInitializedValues(state).supportedFeatures;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.