Improve backup export benchmark measurement

This commit is contained in:
Fedor Indutny 2024-11-13 10:47:58 -08:00 committed by GitHub
parent 2e886235fa
commit 45e9c07125
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 67 additions and 41 deletions

View file

@ -11,6 +11,7 @@ import { explodePromise } from './util/explodePromise';
import { AccessType, ipcInvoke } from './sql/channels';
import { backupsService } from './services/backups';
import { AttachmentBackupManager } from './jobs/AttachmentBackupManager';
import { migrateAllMessages } from './messages/migrateMessageData';
import { SECOND } from './util/durations';
import { isSignalRoute } from './util/signalRoutes';
import { strictAssert } from './util/assert';
@ -35,6 +36,7 @@ export type CIType = {
}
) => unknown;
openSignalRoute(url: string): Promise<void>;
migrateAllMessages(): Promise<void>;
uploadBackup(): Promise<void>;
unlink: () => void;
print: (...args: ReadonlyArray<unknown>) => void;
@ -192,6 +194,7 @@ export function getCI({ deviceName }: GetCIOptionsType): CIType {
solveChallenge,
waitForEvent,
openSignalRoute,
migrateAllMessages,
uploadBackup,
unlink,
getPendingEventCount,