CPU spikes plus frozen UI for 1-2 seconds when switching panes or editing text in vim
- iTerm2 version: Build 3.0.4
- OS version: OSX 10.11.5 (15F34)
- Attach here : com.googlecode.iterm2.plist
Sample (not helpful) : sample.txt
Instruments trace: iterm.trace.zip
Detailed steps to reproduce the problem:
- Have 10 tabs open
- Each tab is split into 4 sub-panes
- Each one runs a zsh shell
What happened: Sometimes when editing text inside vim, iTerm2 blocks for a second or two, then continues to work properly.
One of the shells runs htop, and reports spikes in cpu usage when switching between panes, and when the editing in vim freezes.
The sample that I attached doesn't show anything useful imo.
But I also used Instruments to do a trace, and found that the top 3 functions with most samples in a 12 second trace are:
Running Time Self (ms) Symbol Name 639.0ms 25.9% 0,0 -[PTYWindow encodeRestorableStateWithCoder:] 182.0ms 7.3% 0,0 -[PTYWindow approximateFractionOccluded] 128.0ms 5.1% 0,0 -[iTermTextDrawingHelper drawSimpleRun:ctx:initialPoint:]
Any guess what could be causing this?