malloc() Bytes Flame Graph
Reset Zoom
Search
alloc_root (117,022,720 bytes, 0.25%)
QUICK_SELECT_I::trace_quick_description(Opt_trace_context*) (9,142,920 bytes, 0.02%)
open_tables(THD*, TABLE_LIST**, unsigned int*, unsigned int, Prelocking_strategy*) (4,568,720 bytes, 0.01%)
__GI___libc_malloc (117,022,720 bytes, 0.25%)
open_tmp_table(TABLE*) (58,567,279 bytes, 0.13%)
Optimize_table_order::best_extension_by_limited_search(unsigned long long, unsigned int, unsigned int) (9,142,920 bytes, 0.02%)
[unknown] (72,780,920 bytes, 0.16%)
Optimize_table_order::choose_table_order() (9,142,920 bytes, 0.02%)
__GI___libc_malloc (71,301,048 bytes, 0.15%)
handler::multi_range_read_info_const(unsigned int, st_range_seq_if*, void*, unsigned int, unsigned int*, unsigned int*, Cost_estimate*) (72,780,920 bytes, 0.16%)
__GI___libc_malloc (4,114,206 bytes, 0.01%)
Prepared_statement::execute_loop(String*, bool, unsigned char*, unsigned char*) (39,688,407,455 bytes, 85.65%)
Prepared_statement::execute_loop(String*, bool, unsigned char*, unsigned char*)
do_command(THD*) (39,688,407,455 bytes, 85.65%)
do_command(THD*)
lock_tables(THD*, TABLE_LIST*, unsigned int, unsigned int) (51,204,160 bytes, 0.11%)
Prepared_statement::execute(String*, bool) (39,688,407,455 bytes, 85.65%)
Prepared_statement::execute(String*, bool)
init_io_cache (3,747,014,496 bytes, 8.09%)
init_io_cache
__GI___libc_malloc (31,306,900 bytes, 0.07%)
Optimize_table_order::calculate_scan_cost(JOIN_TAB const*, unsigned int, Key_use const*, double, bool, bool, double*, Opt_trace_object*) (9,142,920 bytes, 0.02%)
[unknown] (36,570,688 bytes, 0.08%)
hp_get_new_block (7,263,788,224 bytes, 15.68%)
hp_get_new_block
my_strdup (4,114,206 bytes, 0.01%)
ha_heap::open(char const*, int, unsigned int) (58,567,279 bytes, 0.13%)
__GI___libc_malloc (4,114,138 bytes, 0.01%)
filesort(THD*, Filesort*, bool, unsigned long long*, unsigned long long*, unsigned long long*) (18,726,818,046 bytes, 40.42%)
filesort(THD*, Filesort*, bool, unsigned long long*, unsigned lon..
String::mem_realloc(unsigned long, bool) (9,142,920 bytes, 0.02%)
DsMrr_impl::dsmrr_info_const(unsigned int, st_range_seq_if*, void*, unsigned int, unsigned int*, unsigned int*, Cost_estimate*) (72,780,920 bytes, 0.16%)
[unknown] (72,780,920 bytes, 0.16%)
ha_heap::write_row(unsigned char*) (14,519,450,208 bytes, 31.34%)
ha_heap::write_row(unsigned char*)
__GI___libc_malloc (118,369,216 bytes, 0.26%)
__GI___libc_malloc (51,204,160 bytes, 0.11%)
st_select_lex::optimize(THD*) (2,456,015,752 bytes, 5.30%)
st_sel..
get_quick_select(PARAM*, unsigned int, SEL_ARG*, unsigned int, unsigned int, st_mem_root*) (944,604,944 bytes, 2.04%)
g..
dispatch_command(THD*, COM_DATA const*, enum_server_command) (39,688,407,455 bytes, 85.65%)
dispatch_command(THD*, COM_DATA const*, enum_server_command)
QEP_tmp_table::end_send() (3,871,783,290 bytes, 8.36%)
QEP_tmp_tab..
init_io_cache_ext (3,745,899,840 bytes, 8.08%)
init_io_cac..
String::mem_realloc_exp(unsigned long) (9,142,920 bytes, 0.02%)
Optimize_table_order::best_access_path(JOIN_TAB*, unsigned long long, unsigned int, bool, double, st_position*) (9,142,920 bytes, 0.02%)
[unknown] (6,642,916,372 bytes, 14.34%)
[unknown]
QUICK_RANGE_SELECT::QUICK_RANGE_SELECT(THD*, TABLE*, unsigned int, bool, st_mem_root*, bool*) (8,226,576 bytes, 0.02%)
__GI___libc_malloc (7,255,661,984 bytes, 15.66%)
__GI___libc_malloc
QEP_TAB::sort_table() (3,871,783,290 bytes, 8.36%)
QEP_TAB::so..
open_tables_for_query(THD*, TABLE_LIST*, unsigned int) (4,568,720 bytes, 0.01%)
test_quick_select(THD*, Bitmap<64u>, unsigned long long, unsigned long long, bool, st_order::enum_order, QEP_shared_owner const*, Item*, Bitmap<64u>*, QUICK_SELECT_I**) (2,061,176,088 bytes, 4.45%)
test_..
alloc_root (935,952,384 bytes, 2.02%)
a..
__GI___libc_malloc (9,142,920 bytes, 0.02%)
QEP_tmp_table::prepare_tmp_table() (58,567,279 bytes, 0.13%)
__GI___libc_malloc (7,263,788,224 bytes, 15.68%)
__GI___libc_malloc
QEP_TAB::sort_table() (18,726,818,046 bytes, 40.42%)
QEP_TAB::sort_table()
init_io_cache (3,745,899,840 bytes, 8.08%)
init_io_cache
open_cached_file (3,750,014,046 bytes, 8.09%)
open_cached..
__GI___libc_malloc (4,568,720 bytes, 0.01%)
JOIN::make_tmp_tables_info() (349,125,888 bytes, 0.75%)
all (46,335,728,342 bytes, 100%)
String::append(char const*, unsigned long) (9,142,920 bytes, 0.02%)
__GI___libc_malloc (107,837,840 bytes, 0.23%)
join_init_read_record(QEP_TAB*) (18,726,818,046 bytes, 40.42%)
join_init_read_record(QEP_TAB*)
filesort(THD*, Filesort*, bool, unsigned long long*, unsigned long long*, unsigned long long*) (3,871,783,290 bytes, 8.36%)
filesort(TH..
[unknown] (6,552,182,784 bytes, 14.14%)
[unknown]
Filesort_buffer::alloc_sort_buffer(unsigned int, unsigned int) (14,976,804,000 bytes, 32.32%)
Filesort_buffer::alloc_sort_buffer(unsigned int, un..
[unknown] (39,688,407,455 bytes, 85.65%)
[unknown]
get_quick_keys(PARAM*, QUICK_RANGE_SELECT*, st_key_part*, SEL_ARG*, unsigned char*, unsigned int, unsigned char*, unsigned int) (936,378,368 bytes, 2.02%)
g..
create_tmp_table(THD*, Temp_table_param*, List<Item>&, st_order*, bool, bool, unsigned long long, unsigned long long, char const*) (349,125,888 bytes, 0.75%)
__GI___libc_malloc (3,747,014,496 bytes, 8.09%)
__GI___libc..
[unknown] (55,767,664 bytes, 0.12%)
init_io_cache_ext (3,747,014,496 bytes, 8.09%)
init_io_cac..
JOIN::create_intermediate_table(QEP_TAB*, List<Item>*, JOIN::ORDER_with_src&, bool) (349,125,888 bytes, 0.75%)
MDL_context::try_acquire_lock_impl(MDL_request*, MDL_ticket**) (4,568,720 bytes, 0.01%)
[unknown] (6,583,489,684 bytes, 14.21%)
[unknown]
__GI___libc_malloc (936,378,368 bytes, 2.02%)
_..
sub_select_op(JOIN*, QEP_TAB*, bool) (3,871,783,290 bytes, 8.36%)
sub_select_..
sysbench (6,642,916,372 bytes, 14.34%)
sysbench
mysql_lock_tables(THD*, TABLE**, unsigned long, unsigned int) (51,204,160 bytes, 0.11%)
instantiate_tmp_table(TABLE*, st_key*, st_columndef*, st_columndef**, unsigned long long, char, Opt_trace_context*) (58,567,279 bytes, 0.13%)
mysql_stmt_execute (6,583,489,684 bytes, 14.21%)
mysql_stmt_execute
JOIN::estimate_rowcount() (2,061,176,088 bytes, 4.45%)
JOIN:..
handler::ha_write_row(unsigned char*) (14,519,450,208 bytes, 31.34%)
handler::ha_write_row(unsigned char*)
sub_select(JOIN*, QEP_TAB*, bool) (33,304,835,533 bytes, 71.88%)
sub_select(JOIN*, QEP_TAB*, bool)
multi_alloc_root (232,103,168 bytes, 0.50%)
__GI___libc_malloc (36,570,688 bytes, 0.08%)
__GI___libc_malloc (3,745,899,840 bytes, 8.08%)
__GI___libc..
join_init_read_record(QEP_TAB*) (3,871,783,290 bytes, 8.36%)
join_init_r..
MDL_context::acquire_lock(MDL_request*, unsigned long) (4,568,720 bytes, 0.01%)
alloc_root (936,378,368 bytes, 2.02%)
a..
hp_get_new_block (7,255,661,984 bytes, 15.66%)
hp_get_new_block
open_table(THD*, TABLE_LIST*, Open_table_context*) (4,568,720 bytes, 0.01%)
TRP_RANGE::make_quick(PARAM*, bool, st_mem_root*) (1,052,442,784 bytes, 2.27%)
T..
mysqld (39,691,709,567 bytes, 85.66%)
mysqld
__GI___libc_malloc (935,952,384 bytes, 2.02%)
_..
handle_connection (39,688,407,455 bytes, 85.65%)
handle_connection
__GI___libc_malloc (59,426,688 bytes, 0.13%)
JOIN::make_join_plan() (2,070,319,176 bytes, 4.47%)
JOIN:..
alloc_root (232,103,168 bytes, 0.50%)
[unknown] (14,519,450,208 bytes, 31.34%)
[unknown]
pfs_spawn_thread (39,688,407,455 bytes, 85.65%)
pfs_spawn_thread
ha_innobase::records_in_range(unsigned int, st_key_range*, st_key_range*) (72,780,920 bytes, 0.16%)
__GI___libc_malloc (8,226,576 bytes, 0.02%)
JOIN::exec() (37,176,618,823 bytes, 80.23%)
JOIN::exec()
__GI___libc_malloc (6,552,182,784 bytes, 14.14%)
__GI___libc_malloc
mysqld_stmt_execute(THD*, unsigned long, unsigned long, unsigned char*, unsigned long) (39,688,407,455 bytes, 85.65%)
mysqld_stmt_execute(THD*, unsigned long, unsigned long, unsigned char*, unsigned long)
Filesort_buffer::alloc_sort_buffer(unsigned int, unsigned int) (118,369,216 bytes, 0.26%)
QEP_tmp_table::put_record(bool) (58,567,279 bytes, 0.13%)
heap_write (14,519,450,208 bytes, 31.34%)
heap_write
hp_write_key (7,255,661,984 bytes, 15.66%)
hp_write_key
[unknown] (6,552,182,784 bytes, 14.14%)
[unknown]
[unknown] (6,583,489,684 bytes, 14.21%)
[unknown]
open_cached_file (3,751,128,634 bytes, 8.10%)
open_cached..
mysql_unlock_some_tables(THD*, TABLE**, unsigned int) (36,570,688 bytes, 0.08%)
[unknown] (6,583,489,684 bytes, 14.21%)
[unknown]
[unknown] (6,552,182,784 bytes, 14.14%)
[unknown]
__GI___libc_malloc (232,103,168 bytes, 0.50%)
Optimize_table_order::greedy_search(unsigned long long) (9,142,920 bytes, 0.02%)
JOIN::optimize() (2,456,015,752 bytes, 5.30%)
JOIN::..
start_thread (39,688,407,455 bytes, 85.65%)
start_thread
mysql_execute_command(THD*, bool) (39,688,407,455 bytes, 85.65%)
mysql_execute_command(THD*, bool)
handle_query(THD*, LEX*, Query_result*, unsigned long long, unsigned long long) (39,683,838,735 bytes, 85.64%)
handle_query(THD*, LEX*, Query_result*, unsigned long long, unsigned long long)
handler::ha_open(TABLE*, char const*, int, int) (58,567,279 bytes, 0.13%)
__GI___libc_malloc (55,767,664 bytes, 0.12%)
[unknown] (14,578,017,487 bytes, 31.46%)
[unknown]
__GI___libc_malloc (14,976,804,000 bytes, 32.32%)
__GI___libc_malloc
my_strdup (4,114,138 bytes, 0.01%)