Skip to content
Permalink
Browse files
Add support for ENABLE_RUN_LOOP_PROFILING
This is the new name for ENABLE_SLOW_TASK_PROFILING.
  • Loading branch information
kocolosk committed Nov 9, 2021
1 parent 26986b3 commit 0f3bee4cafdb550b5eafc4c6cf808767d5d99910
Showing 3 changed files with 11 additions and 2 deletions.
@@ -64,6 +64,7 @@ ATOM_MAP(external_client_directory);
ATOM_MAP(disable_local_client);
ATOM_MAP(disable_client_statistics_logging);
ATOM_MAP(enable_slow_task_profiling);
ATOM_MAP(enable_run_loop_profiling);


// Database Options
@@ -504,7 +504,13 @@ erlfdb_network_set_option(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
option = FDB_NET_OPTION_DISABLE_CLIENT_STATISTICS_LOGGING;
} else if(IS_ATOM(argv[0], enable_slow_task_profiling)) {
option = FDB_NET_OPTION_ENABLE_SLOW_TASK_PROFILING;
} else {
}
#if FDB_API_VERSION >= 630
else if(IS_ATOM(argv[0], enable_run_loop_profiling)) {
option = FDB_NET_OPTION_ENABLE_RUN_LOOP_PROFILING;
}
#endif
else {
return enif_make_badarg(env);
}

@@ -110,7 +110,9 @@
| external_client_directory
| disable_local_client
| disable_client_statistics_logging
| enable_slow_task_profiling.
| enable_slow_task_profiling
% API version 630+
| enable_run_loop_profiling.

-type database_option() ::
location_cache_size

0 comments on commit 0f3bee4

Please sign in to comment.