MCPcopy Create free account
hub / github.com/facebook/memlab / restoreState

Method restoreState

packages/api/src/state/APIStateManager.ts:37–44  ·  view source on GitHub ↗
(config: MemLabConfig, state: APIState)

Source from the content-addressed store, hash-verified

35 }
36
37 restoreState(config: MemLabConfig, state: APIState) {
38 if (state.modes) {
39 consoleModeManager.restoreState(config, state.modes);
40 }
41 if (state.puppeteerConfig) {
42 puppeteerConfigManager.restoreState(config, state.puppeteerConfig);
43 }
44 }
45}
46
47export default new APIStateManager();

Callers 5

warmupAndTakeSnapshotsFunction · 0.45
runFunction · 0.45
takeSnapshotsFunction · 0.45
findLeaksFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected