title: Vim profile not logging to file
body: <p>I try <code>log</code> slow functions of <code>VIM</code> on <code>macOS Mojave</code> but the log file does not appear.</p>
  
  <p>vim commands:</p>
  
  <pre><code>:profile start ./profile.log
  :profile func *
  :profile file *
  // do vim operations
  </code></pre>
  
  <p>I expect to get <code>profile.log</code> file on my working dir but it doesn`t appear.</p>
  
  <p><code>:pwd</code> prints expected dir</p>
  
  <pre><code>:version
  VIM - Vi IMproved 8.1 (2018 May 18, compiled Feb 19 2019 12:07:03)
  macOS version
  Included patches: 1-950
  Compiled by Homebrew
  Huge version with MacVim GUI.  Features included (+) or not (-):
  +acl               +cindent           +cursorshape       +file_in_path      +job               +menu              +mouse_urxvt       +persistent_undo   +signs             +terminal          +vertsplit         -xfontset
  +arabic            +clientserver      +dialog_con_gui    +find_in_path      +jumplist          +mksession         +mouse_xterm       +postscript        +smartindent       +terminfo          +virtualedit       +xim
  +autocmd           +clipboard         +diff              +float             +keymap            +modify_fname      +multi_byte        +printer           +startuptime       +termresponse      +visual            -xpm
  +autochdir         +cmdline_compl     +digraphs          +folding           +lambda            +mouse             +multi_lang        +profile           +statusline        +textobjects       +visualextra       -xsmp
  -autoservername    +cmdline_hist      +dnd               -footer            +langmap           +mouseshape        -mzscheme          -python            -sun_workshop      +textprop          +viminfo           -xterm_clipboard
  +balloon_eval      +cmdline_info      -ebcdic            +fork()            +libcall           +mouse_dec         +netbeans_intg     +python3           +syntax            +timers            +vreplace          -xterm_save
  +balloon_eval_term +comments          +emacs_tags        +fullscreen        +linebreak         -mouse_gpm         +num64             +quickfix          +tag_binary        +title             +wildignore
  +browse            +conceal           +eval              -gettext           +lispindent        -mouse_jsbterm     +odbeditor         +reltime           +tag_old_static    +toolbar           +wildmenu
  ++builtin_terms    +cryptv            +ex_extra          -hangul_input      +listcmds          +mouse_netterm     +packages          +rightleft         -tag_any_white     +transparency      +windows
  +byte_offset       +cscope            +extra_search      +iconv             +localmap          +mouse_sgr         +path_extra        +ruby              -tcl               +user_commands     +writebackup
  +channel           +cursorbind        -farsi             +insert_expand     +lua               -mouse_sysmouse    +perl              +scrollbind        +termguicolors     +vartabs           -X11
     system vimrc file: "$VIM/vimrc"
       user vimrc file: "$HOME/.vimrc"
   2nd user vimrc file: "~/.vim/vimrc"
        user exrc file: "$HOME/.exrc"
    system gvimrc file: "$VIM/gvimrc"
      user gvimrc file: "$HOME/.gvimrc"
  2nd user gvimrc file: "~/.vim/gvimrc"
         defaults file: "$VIMRUNTIME/defaults.vim"
      system menu file: "$VIMRUNTIME/menu.vim"
    fall-back for $VIM: "/Applications/MacVim.app/Contents/Resources/vim"
  Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe  -DMACOS_X -DMACOS_X_DARWIN  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
  Linking: clang   -L. -L.  -L/usr/local/lib -o Vim -framework Cocoa -framework Carbon       -lm  -lncurses -liconv -framework AppKit  -L/usr/local/opt/lua/lib -llua5.3 -fstack-protector  -L/System/Library/Perl/5.18/darwin-thread-multi-2lev
  el/CORE -lperl  -L/usr/local/opt/python/Frameworks/Python.framework/Versions/3.7/lib/python3.7/config-3.7m-darwin -lpython3.7m -framework CoreFoundation  -framework Ruby
  </code></pre>