1 | import { EventManager } from './event_manager';
|
2 | export declare class LocalEventManager extends EventManager {
|
3 | private previousTicks;
|
4 | /**
|
5 | * Initializes the EventManager and sets up periodic `systemInfo` and `persistState` events.
|
6 | * This is automatically called at the beginning of `crawler.run()`.
|
7 | */
|
8 | init(): Promise<void>;
|
9 | /**
|
10 | * @inheritDoc
|
11 | */
|
12 | close(): Promise<void>;
|
13 | /**
|
14 | * @internal
|
15 | */
|
16 | emitSystemInfoEvent(intervalCallback: () => unknown): Promise<void>;
|
17 | private getCurrentCpuTicks;
|
18 | /**
|
19 | * Creates a SystemInfo object based on local metrics.
|
20 | */
|
21 | private createSystemInfo;
|
22 | private createCpuInfo;
|
23 | private createMemoryInfo;
|
24 | /**
|
25 | * Helper method for easier mocking.
|
26 | */
|
27 | private _getMemoryInfo;
|
28 | }
|
29 | //# sourceMappingURL=local_event_manager.d.ts.map |
\ | No newline at end of file |