federer
Version:
Experiments in asynchronous federated learning and decentralized learning
18 lines • 769 B
TypeScript
import { InstrumentationMetrics, InstrumentationOptions } from "../../common";
/**
* Helper class which can be notified of events happening on the server, and
* keep track of the metrics that is configured to track.
*/
export declare class Instrumentation {
private readonly shouldInstrument;
private readonly stalenessCounts?;
private memory?;
constructor(shouldInstrument: InstrumentationOptions);
/** Register that a client has uploaded a message. */
registerUpload(currentRound: number, uploadRound: number): void;
/** Register that the round has ended. */
registerRoundEnd(): void;
/** Get metrics that have been accumulated. */
metrics(): Readonly<InstrumentationMetrics>;
}
//# sourceMappingURL=Instrumentation.d.ts.map