File size: 903 Bytes
68d7816 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | import { createDecorator } from '#/_base/di/instantiation';
import type { LedgerEntryInfo } from '#/_base/lifecycle/ledger';
export interface DebugEventSubscription {
readonly scopePath: string;
readonly unit: string;
readonly uid?: number;
readonly label: string;
readonly kind: LedgerEntryInfo['kind'];
}
export interface DebugEventBusSnapshot {
readonly scopePath: string;
readonly all: number;
readonly perType: Record<string, number>;
readonly perAgent: Record<string, number>;
}
export interface DebugEventSubscriptions {
readonly subscriptions: DebugEventSubscription[];
readonly buses: DebugEventBusSnapshot[];
readonly globalListeners?: number;
}
export interface IDebugEventsService {
readonly _serviceBrand: undefined;
subscriptions(): DebugEventSubscriptions;
}
export const IDebugEventsService = createDecorator<IDebugEventsService>('debugEventsService');
|