Add support for ENABLE_RUN_LOOP_PROFILING
This is the new name for ENABLE_SLOW_TASK_PROFILING.
diff --git a/c_src/atom_names.h b/c_src/atom_names.h
index 97abbf9..1e524b3 100644
--- a/c_src/atom_names.h
+++ b/c_src/atom_names.h
@@ -64,6 +64,7 @@
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
diff --git a/c_src/main.c b/c_src/main.c
index 45fb22e..fe9b0b9 100644
--- a/c_src/main.c
+++ b/c_src/main.c
@@ -504,7 +504,13 @@
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);
}
diff --git a/src/erlfdb_nif.erl b/src/erlfdb_nif.erl
index 6ebc83e..b8f5895 100644
--- a/src/erlfdb_nif.erl
+++ b/src/erlfdb_nif.erl
@@ -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