MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / Slow_log_throttle

Method Slow_log_throttle

sql/sql_class.cc:1809–1817  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1807
1808
1809Slow_log_throttle::Slow_log_throttle(ulong *threshold, mysql_mutex_t *lock,
1810 ulong window_usecs,
1811 bool (*logger)(THD *, const char *, uint),
1812 const char *msg)
1813 : Log_throttle(window_usecs, msg), total_exec_time(0), total_lock_time(0),
1814 rate(threshold), log_summary(logger), LOCK_log_throttle(lock)
1815{
1816 aggregate_sctx.init();
1817}
1818
1819
1820ulong Log_throttle::prepare_summary(ulong rate)

Callers

nothing calls this directly

Calls 1

initMethod · 0.45

Tested by

no test coverage detected