1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 05:30:07 +08:00
SpaceVim/bundle/vimproc.vim/tools/leak_check.vim
2020-06-14 23:42:40 +08:00

22 lines
348 B
VimL
Vendored

" Resource leak checker.
let max = 2048
for i in range(1, max)
redraw
echo i.'/'.max
call vimproc#system('ls | head -20')
endfor
for i in range(1, max)
redraw
echo i.'/'.max
let process = vimproc#pgroup_open('ls')
while !process.stdout.eof
call process.stdout.read(-1)
endwhile
let [_, status] = process.waitpid()
endfor