Service for logging performance metrics to SQLite database.
Captures all performance timing events from strategy execution and stores them in the Report database for bottleneck analysis and optimization.
Features:
constructor();
loggerService: any
Logger service for debug output
track: any
Processes performance tracking events and logs them to the database.
subscribe: (() => () => void) & ISingleshotClearable
Subscribes to performance emitter to receive timing events. Protected against multiple subscriptions. Returns an unsubscribe function to stop receiving events.
unsubscribe: () => Promise<void>
Unsubscribes from performance emitter to stop receiving events. Calls the unsubscribe function returned by subscribe(). If not subscribed, does nothing.