mirror of
https://github.com/neovim/neovim.git
synced 2024-12-26 14:11:15 -07:00
db7cd61f62
Should be better than gettimeofday() since libuv uses higher resolution clocks on most UNIX platforms. Libuv also tries to use monotonic clocks, kernel bugs notwithstanding, which is another win over gettimeofday(). Necessary for Windows, which doesn't have gettimeofday(). In vanilla vim, Windows uses QueryPerformanceCounter, which is the correct primitive for this sort of things, but that was removed when slimming up the codebase. Libuv uses QueryPerformanceCounter to implement uv_hrtime() on Windows so the behaviour of vim profiling on Windows should now be the same. The behaviour on Linux should be different (better) though, libuv uses more accurate primitives than gettimeofday(). Other misc. changes: - Added function attributes where relevant (const, pure, ...) - Convert functions to receive scalars: Now that proftime_T is always a (uint64_t) scalar (and not a struct), it's clearer to convert the functions to receive it as such instead of a pointer to a scalar. - Extract profiling funcs to profile.c: make everything clearer and reduces the size of the "catch-all" ex_cmds2.c - Add profile.{c,h} to clint and -Wconv: - Don't use sprintf, use snprintf - Don't use long, use int16_t/int32_t/...
55 lines
1.1 KiB
Plaintext
55 lines
1.1 KiB
Plaintext
src/nvim/api/buffer.c
|
|
src/nvim/api/buffer.h
|
|
src/nvim/api/private/defs.h
|
|
src/nvim/api/private/helpers.c
|
|
src/nvim/api/private/helpers.h
|
|
src/nvim/api/private/handle.c
|
|
src/nvim/api/private/handle.h
|
|
src/nvim/api/tabpage.c
|
|
src/nvim/api/tabpage.h
|
|
src/nvim/api/vim.c
|
|
src/nvim/api/vim.h
|
|
src/nvim/api/window.c
|
|
src/nvim/api/window.h
|
|
src/nvim/cursor.c
|
|
src/nvim/cursor.h
|
|
src/nvim/hashtab.c
|
|
src/nvim/hashtab.h
|
|
src/nvim/indent.c
|
|
src/nvim/indent.h
|
|
src/nvim/log.c
|
|
src/nvim/log.h
|
|
src/nvim/map.c
|
|
src/nvim/map.h
|
|
src/nvim/map_defs.h
|
|
src/nvim/os/env.c
|
|
src/nvim/os/event.c
|
|
src/nvim/os/event.h
|
|
src/nvim/os/event_defs.h
|
|
src/nvim/os/input.c
|
|
src/nvim/os/input.h
|
|
src/nvim/os/job.c
|
|
src/nvim/os/job.h
|
|
src/nvim/os/job_defs.h
|
|
src/nvim/os/mem.c
|
|
src/nvim/os/msgpack_rpc.c
|
|
src/nvim/os/msgpack_rpc.h
|
|
src/nvim/os/os.h
|
|
src/nvim/os/rstream.c
|
|
src/nvim/os/rstream.h
|
|
src/nvim/os/rstream_defs.h
|
|
src/nvim/os/shell.c
|
|
src/nvim/os/shell.h
|
|
src/nvim/os/signal.c
|
|
src/nvim/os/signal.h
|
|
src/nvim/os/time.c
|
|
src/nvim/os/time.h
|
|
src/nvim/os/server.c
|
|
src/nvim/os/server.h
|
|
src/nvim/os/channel.c
|
|
src/nvim/os/channel.h
|
|
src/nvim/tempfile.c
|
|
src/nvim/tempfile.h
|
|
src/nvim/profile.c
|
|
src/nvim/profile.h
|