mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 08:02:02 +00:00
97f2a2213e
* Move some code outside dbms/src folder * Fix paths
7 lines
488 B
SQL
7 lines
488 B
SQL
SET allow_introspection_functions = 1;
|
|
|
|
SET memory_profiler_step = 1000000;
|
|
SELECT ignore(groupArray(number), 'test memory profiler') FROM numbers(10000000);
|
|
SYSTEM FLUSH LOGS;
|
|
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 event_date >= yesterday() AND query LIKE '%test memory profiler%' ORDER BY event_time DESC LIMIT 1);
|