Debian Codegraph @

mysql-test/suite/json/t/json_perfschema.test

raw
1
2 --echo #
3 --echo # Bug#24286064: JSON MEMORY USAGE MISSING FROM THE MEMORY SUMMARY TABLES
4 --echo #
5 # Do something that will allocate JSON data.
6 SELECT CAST(123 AS JSON);
7 # Verify that JSON is in the summary table, and that memory has been
8 # allocated and freed.
9 SELECT event_name, count_alloc > 0, count_alloc = count_free,
10 sum_number_of_bytes_alloc > 0,
11 sum_number_of_bytes_alloc = sum_number_of_bytes_free
12 FROM performance_schema.memory_summary_global_by_event_name
13 WHERE event_name = 'memory/sql/JSON';