Files
lan-manager/web/node_modules/@probe.gl/stats/dist/lib/stats.d.ts
openclaw 0a5f6a8047 Initial commit: Lan-manager project code
- Go backend (server/)
- Frontend (web/, server/static/)
- Database and deployment files
- Scripts and docs

Co-Authored-By: 狸花猫/Claude-Qwen3.6-Plus 🐾
2026-04-20 00:52:58 +08:00

31 lines
877 B
TypeScript

import Stat from './stat';
/** A "bag" of `Stat` objects, can be visualized using `StatsWidget` */
export default class Stats {
readonly id: string;
readonly stats: Record<string, Stat>;
constructor(options: {
id: string;
stats?: Stats | Stat[] | {
name: string;
type?: string;
}[];
});
/** Acquire a stat. Create if it doesn't exist. */
get(name: string, type?: string): Stat;
get size(): number;
/** Reset all stats */
reset(): this;
forEach(fn: (stat: Stat) => void): void;
getTable(): Record<string, {
time: number;
count: number;
average: number;
hz: number;
}>;
_initializeStats(stats?: Stats | Stat[] | {
name: string;
type?: string;
}[]): void;
_getOrCreate(stat: any): Stat;
}
//# sourceMappingURL=stats.d.ts.map