mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 09:18:19 +00:00
API: nvim__stats()
Use it to verify fsync() behavior.
This commit is contained in:
@@ -1473,6 +1473,17 @@ Float nvim__id_float(Float flt)
|
||||
return flt;
|
||||
}
|
||||
|
||||
/// Gets internal stats.
|
||||
///
|
||||
/// @return Map of various internal stats.
|
||||
Dictionary nvim__stats(void)
|
||||
{
|
||||
Dictionary rv = ARRAY_DICT_INIT;
|
||||
PUT(rv, "fsync", INTEGER_OBJ(g_stats.fsync));
|
||||
PUT(rv, "redraw", INTEGER_OBJ(g_stats.redraw));
|
||||
return rv;
|
||||
}
|
||||
|
||||
/// Gets a list of dictionaries representing attached UIs.
|
||||
///
|
||||
/// @return Array of UI dictionaries
|
||||
|
Reference in New Issue
Block a user