MCPcopy Create free account
hub / github.com/Tencent/phxsql / run

Method run

phxsqlproxy/monitor_routine.cpp:38–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38int MonitorRoutine::run() {
39 co_enable_hook_sys();
40 while (true) {
41 int io_routine_used = io_routine_mgr_->GetUsedIORoutine();
42 MonitorPluginEntry::GetDefault()->GetMonitorPlugin()->WorkingRoutine(io_routine_used);
43 LogWarning("%s: %d IORoutine is working....", __func__, io_routine_used);
44 poll(0, 0, 60 * 1000);
45 }
46 return 0;
47}
48
49}

Callers

nothing calls this directly

Calls 4

LogWarningFunction · 0.85
GetUsedIORoutineMethod · 0.80
WorkingRoutineMethod · 0.80
GetMonitorPluginMethod · 0.80

Tested by

no test coverage detected