benchmark debug sandbox/mbloch/wip-05-28
authorMichal Bloch <m.bloch@samsung.com>
Wed, 28 May 2025 19:59:34 +0000 (21:59 +0200)
committerMichal Bloch <m.bloch@samsung.com>
Wed, 28 May 2025 21:05:56 +0000 (23:05 +0200)
Change-Id: I42c1866ef96f513e579bb2ac78b12feb67603f92
Signed-off-by: Michal Bloch <m.bloch@samsung.com>
tests/api_tests/test_benchmark_add.cpp

index 8892793b2eb97ab763945ec75c2ee110b99e616f..3a52333d47f940230b064627e56fa4757e0dc0f9 100644 (file)
@@ -36,6 +36,7 @@ void callback(int result, void *userdata)
        }
        -- calls_remaining;
        waiting_for_reply = false;
+std::cout << "callback wrocil" << std::endl;
 }
 
 gboolean periodic_check (gpointer data)
@@ -46,13 +47,16 @@ gboolean periodic_check (gpointer data)
        }
 
        if (!calls_remaining) {
+std::cout << "ostatni plomien zgasl" << std::endl;
                g_main_loop_quit(mainloop);
                return TRUE;
        }
 
+std::cout << "idle, zapuszczam sleepa zeby sie template zregenerowal" << std::endl;
        waiting_for_reply = true;
        subsession_remove_user(UID, SUBSESSION_NAME.data(), nullptr, nullptr);
        std::this_thread::sleep_for(sleep_duration);
+std::cout << "sleep DONER. robie nowego Add calla" << std::endl;
        start_timestamp = Clock::now();
        subsession_add_user_fixed_size(UID, SUBSESSION_NAME.data(), IMAGE_SIZE, callback, nullptr);
        return TRUE;
@@ -72,6 +76,7 @@ int main(int argc, char **argv)
 
        const auto idle_id = g_idle_add(periodic_check, nullptr);
        mainloop = g_main_loop_new(nullptr, false);
+std::cout << "achtung. zapuszczam mainloope" << std::endl;
        g_main_loop_run(mainloop);
 
        std::cout << "Waited an average of " << total_duration.count() / CALLS_TO_MAKE << "ms per subsession add" << std::endl;