mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
perfschema memory related instrumentation changes
This commit is contained in:
@ -200,7 +200,8 @@ void PROF_MEASUREMENT::set_label(const char *status_arg,
|
||||
sizes[1]= (function_arg == NULL) ? 0 : strlen(function_arg) + 1;
|
||||
sizes[2]= (file_arg == NULL) ? 0 : strlen(file_arg) + 1;
|
||||
|
||||
allocated_status_memory= (char *) my_malloc(sizes[0] + sizes[1] + sizes[2], MYF(0));
|
||||
allocated_status_memory= (char *) my_malloc(key_memory_PROFILE, sizes[0] +
|
||||
sizes[1] + sizes[2], MYF(0));
|
||||
DBUG_ASSERT(allocated_status_memory != NULL);
|
||||
|
||||
cursor= allocated_status_memory;
|
||||
@ -289,7 +290,7 @@ void QUERY_PROFILE::set_query_source(char *query_source_arg, size_t query_length
|
||||
|
||||
DBUG_ASSERT(query_source == NULL); /* we don't leak memory */
|
||||
if (query_source_arg != NULL)
|
||||
query_source= my_strndup(query_source_arg, length, MYF(0));
|
||||
query_source= my_strndup(key_memory_PROFILE, query_source_arg, length, MYF(0));
|
||||
}
|
||||
|
||||
void QUERY_PROFILE::new_status(const char *status_arg,
|
||||
|
Reference in New Issue
Block a user