You've already forked joplin
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:
@@ -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),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user