UNPKG

@crawlee/core

Version:

The scalable web crawling and scraping library for JavaScript/Node.js. Enables development of data extraction and web automation jobs (not only) with headless Chrome and Puppeteer.

29 lines 845 B
import { EventManager } from './event_manager'; export declare class LocalEventManager extends EventManager { private previousTicks; /** * Initializes the EventManager and sets up periodic `systemInfo` and `persistState` events. * This is automatically called at the beginning of `crawler.run()`. */ init(): Promise<void>; /** * @inheritDoc */ close(): Promise<void>; /** * @internal */ emitSystemInfoEvent(intervalCallback: () => unknown): Promise<void>; /** * @internal */ isContainerizedWrapper(): Promise<boolean>; private getCurrentCpuTicks; /** * Creates a SystemInfo object based on local metrics. */ private createSystemInfo; private createCpuInfo; private createMemoryInfo; } //# sourceMappingURL=local_event_manager.d.ts.map