MCPcopy
hub / github.com/facebook/react / openProfiler

Function openProfiler

packages/react-devtools-core/src/standalone.js:206–218  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

204}
205
206function openProfiler() {
207 // Mocked up bridge and store to allow the DevTools to be rendered
208 bridge = new Bridge({listen: () => {}, send: () => {}});
209 store = new Store(bridge, {});
210
211 // Ensure the Profiler tab is shown initially.
212 localStorageSetItem(
213 LOCAL_STORAGE_DEFAULT_TAB_KEY,
214 JSON.stringify('profiler'),
215 );
216
217 reload();
218}
219
220function initialize(socket: WebSocket) {
221 const listeners = [];

Callers

nothing calls this directly

Calls 2

localStorageSetItemFunction · 0.90
reloadFunction · 0.85

Tested by

no test coverage detected