1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-11-26 22:41:17 +02:00

Chore: Resolves #12813: Move performance logger file labels to the corresponding log statements (#12820)

This commit is contained in:
Henry Heino
2025-08-01 03:43:05 -07:00
committed by GitHub
parent c5b6f0bca1
commit 825ce51a3c
12 changed files with 89 additions and 84 deletions

View File

@@ -110,7 +110,7 @@ import buildStartupTasks from './utils/buildStartupTasks';
import { SafeAreaProvider } from 'react-native-safe-area-context';
const logger = Logger.create('root');
const perfLogger = PerformanceLogger.create('root');
const perfLogger = PerformanceLogger.create();
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- Old code before rule was applied
let storeDispatch: any = function(_action: any) {};
@@ -597,7 +597,7 @@ class AppComponent extends React.Component<AppComponentProps, AppComponentState>
}
try {
await perfLogger.track('initialize', () => initialize(this.props.dispatch));
await perfLogger.track('root/initialize', () => initialize(this.props.dispatch));
} catch (error) {
alert(`Something went wrong while starting the application: ${error}`);
this.props.dispatch({
@@ -673,11 +673,11 @@ class AppComponent extends React.Component<AppComponentProps, AppComponentState>
);
onSystemColorSchemeChange(Appearance.getColorScheme());
this.quickActionShortcutListener_ = await perfLogger.track('setupQuickActions',
this.quickActionShortcutListener_ = await perfLogger.track('root/setupQuickActions',
() => setupQuickActions(this.props.dispatch),
);
await perfLogger.track('setupNotifications',
await perfLogger.track('root/setupNotifications',
() => setupNotifications(this.props.dispatch),
);