2021-11-21 10:58:26 +00:00
|
|
|
-- Tags: no-tsan, no-asan, no-ubsan, no-msan, no-debug, no-parallel, no-fasttest
|
2021-09-12 12:35:27 +00:00
|
|
|
|
2020-03-03 01:46:35 +00:00
|
|
|
SET allow_introspection_functions = 1;
|
|
|
|
|
|
|
|
SET memory_profiler_step = 1000000;
|
2021-10-07 18:13:56 +00:00
|
|
|
SET memory_profiler_sample_probability = 1;
|
2021-10-07 18:13:56 +00:00
|
|
|
SET log_queries = 1;
|
2021-10-07 18:13:56 +00:00
|
|
|
|
2020-03-03 01:46:35 +00:00
|
|
|
SELECT ignore(groupArray(number), 'test memory profiler') FROM numbers(10000000);
|
|
|
|
SYSTEM FLUSH LOGS;
|
2021-01-26 19:56:11 +00:00
|
|
|
WITH addressToSymbol(arrayJoin(trace)) AS symbol SELECT count() > 0 FROM system.trace_log t WHERE event_date >= yesterday() AND trace_type = 'Memory' AND query_id = (SELECT query_id FROM system.query_log WHERE current_database = currentDatabase() AND event_date >= yesterday() AND query LIKE '%test memory profiler%' ORDER BY event_time DESC LIMIT 1);
|
2021-10-07 18:13:56 +00:00
|
|
|
WITH addressToSymbol(arrayJoin(trace)) AS symbol SELECT count() > 0 FROM system.trace_log t WHERE event_date >= yesterday() AND trace_type = 'MemoryPeak' AND query_id = (SELECT query_id FROM system.query_log WHERE current_database = currentDatabase() AND event_date >= yesterday() AND query LIKE '%test memory profiler%' ORDER BY event_time DESC LIMIT 1);
|
2021-10-07 18:13:56 +00:00
|
|
|
WITH addressToSymbol(arrayJoin(trace)) AS symbol SELECT count() > 0 FROM system.trace_log t WHERE event_date >= yesterday() AND trace_type = 'MemorySample' AND query_id = (SELECT query_id FROM system.query_log WHERE current_database = currentDatabase() AND event_date >= yesterday() AND query LIKE '%test memory profiler%' ORDER BY event_time DESC LIMIT 1);
|