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

Commit

Permalink
🔥 Window state load time
Browse files Browse the repository at this point in the history
This is just project load time + workspace load time, and is 0 when no
project is loaded.
  • Loading branch information
Wliu authored and Wliu committed Nov 4, 2017
1 parent 22d0dce commit bad2b6d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions lib/window-panel-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ export default class WindowPanelView {
this.disposables = new CompositeDisposable()
this.disposables.add(atom.tooltips.add(this.refs.shellTiming, {title: 'The time taken to launch the app'}))
this.disposables.add(atom.tooltips.add(this.refs.windowTiming, {title: 'The time taken to load this window'}))
this.disposables.add(atom.tooltips.add(this.refs.atomTiming, {title: 'The time taken to read and parse the stored window state'}))
this.disposables.add(atom.tooltips.add(this.refs.projectTiming, {title: 'The time taken to rebuild the previously opened buffers'}))
this.disposables.add(atom.tooltips.add(this.refs.workspaceTiming, {title: 'The time taken to rebuild the previously opened editors'}))
}
Expand Down Expand Up @@ -39,11 +38,6 @@ export default class WindowPanelView {
<span className='inline-block' ref='windowLoadTime'>Loading…</span>
</div>

<div className='timing' ref='atomTiming'>
<span className='inline-block'>Window state load time</span>
<span className='inline-block' ref='atomLoadTime'>Loading…</span>
</div>

<div ref='deserializeTimings'>
<div className='timing' ref='projectTiming'>
<span className='inline-block'>Project load time</span>
Expand Down Expand Up @@ -74,9 +68,6 @@ export default class WindowPanelView {
this.refs.shellTiming.style.display = 'none'
}

this.refs.atomLoadTime.classList.add(this.getHighlightClass(atom.deserializeTimings.atom))
this.refs.atomLoadTime.textContent = `${atom.deserializeTimings.atom}ms`

if (atom.deserializeTimings.project != null) {
// Project and workspace timings only exist if the current project was previously opened
this.refs.projectLoadTime.classList.add(this.getHighlightClass(atom.deserializeTimings.project))
Expand Down

0 comments on commit bad2b6d

Please sign in to comment.