mattermost-mobile-upstream/app/init/launch_profiler.ts
Nick Misasi 76479488f4
perf: skip Android Keystore listing on cold start
Open the app DB first and decrypt credentials only for known server URLs so logged-in launches no longer enumerate every generic-password service.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-17 14:51:54 -04:00

16 lines
411 B
TypeScript

// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import {logInfo} from '@utils/log';
const origin = Date.now();
export function launchMark(stage: string, extra?: string) {
const ms = Date.now() - origin;
if (extra) {
logInfo('LAUNCH', `+${ms}ms`, stage, extra);
} else {
logInfo('LAUNCH', `+${ms}ms`, stage);
}
}