Log during -t=bench every database access from the main thread.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@4498 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2023-10-08 14:25:22 +00:00
parent 0473eec0a2
commit 11373faf23
3 changed files with 24 additions and 0 deletions

View File

@ -638,6 +638,9 @@ void tf_ssb_test_bench(const tf_test_options_t* options)
uint8_t id0bin[k_id_bin_len];
tf_ssb_id_str_to_bin(id0bin, id0);
tf_ssb_set_main_thread(ssb0);
tf_ssb_set_main_thread(ssb1);
uv_idle_t idle0 = { .data = ssb0 };
uv_idle_init(&loop, &idle0);
uv_idle_start(&idle0, _ssb_test_idle);