Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Only show project load times when a project is deserialized #29

Merged
merged 3 commits into from
Nov 4, 2017

Conversation

winstliu
Copy link
Contributor

@winstliu winstliu commented Nov 4, 2017

Requirements

  • Filling out the template is required. Any pull request that does not include enough information to be reviewed in a timely manner may be closed at the maintainers' discretion.
  • All new code requires tests to ensure against regressions

Description of the Change

This prevents project and workspace load times from showing up as undefinedms. In addition, I have removed the window state load time as it was just the project load time and the workspace load time added together (and 0 when there was no project to load). Finally, the display order has been changed to better follow the logical load order:

  • Shell
  • Window
  • Project
  • Workspace

Alternate Designs

None.

Benefits

More logical display order and hiding of project + workspace times when there is no previous state.

Possible Drawbacks

None.

Applicable Issues

Fixes #24
Fixes #19

Wliu added 3 commits November 4, 2017 19:33
Also, reorganize display order:
* Shell
* Window
* Window state
* Project
* Workspace
This is just project load time + workspace load time, and is 0 when no
project is loaded.
@winstliu
Copy link
Contributor Author

winstliu commented Nov 4, 2017

For reference, the only code that is executed that is captured by window state load time and not project/workspace load time is the following:

https://github.com/atom/atom/blob/761fa46863025bddf3df3ee63bec2780e6c1e14c/src/atom-environment.coffee#L1008-L1015

The time those lines take is extremely inconsequential.

@winstliu winstliu merged commit acfddff into master Nov 4, 2017
@winstliu winstliu deleted the wl-window-timings branch November 4, 2017 19:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

workspace/project load times are undefined Order of items in the 'Startup Time' pane
1 participant