MySQL 8.0.39
Source Code Documentation
PFS_events_statements Struct Reference

A statement record. More...

#include <pfs_events_statements.h>

Inheritance diagram for PFS_events_statements:
[legend]

Public Attributes

ulonglong m_statement_id
 STATEMENT_ID, from the SQL layer QUERY_ID. More...
 
enum_object_type m_sp_type
 
PFS_schema_name m_schema_name
 
PFS_object_name m_object_name
 
PFS_schema_name m_current_schema_name
 Database name. More...
 
ulonglong m_lock_time
 Locked time. More...
 
uint m_sql_errno
 Diagnostics area, error number. More...
 
char m_sqlstate [SQLSTATE_LENGTH]
 Diagnostics area, SQLSTATE. More...
 
uint m_error_count
 Diagnostics area, error count. More...
 
uint m_warning_count
 Diagnostics area, warning count. More...
 
ulonglong m_rows_affected
 Diagnostics area, rows affected. More...
 
ulonglong m_rows_sent
 Optimizer metric, number of rows sent. More...
 
ulonglong m_rows_examined
 Optimizer metric, number of rows examined. More...
 
ulonglong m_created_tmp_disk_tables
 Optimizer metric, number of temporary tables created on disk. More...
 
ulonglong m_created_tmp_tables
 Optimizer metric, number of temporary tables created. More...
 
ulonglong m_select_full_join
 Optimizer metric, number of full join. More...
 
ulonglong m_select_full_range_join
 Optimizer metric, number of full range join. More...
 
ulonglong m_select_range
 Optimizer metric, number of select range. More...
 
ulonglong m_select_range_check
 Optimizer metric, number of select range checks. More...
 
ulonglong m_select_scan
 Optimizer metric, number of select scans. More...
 
ulonglong m_sort_merge_passes
 Optimizer metric, number of sort merge passes. More...
 
ulonglong m_sort_range
 Optimizer metric, number of sort ranges. More...
 
ulonglong m_sort_rows
 Optimizer metric, number of sort rows. More...
 
ulonglong m_sort_scan
 Optimizer metric, number of sort scans. More...
 
ulonglong m_no_index_used
 Optimizer metric, number of 'no index used'. More...
 
ulonglong m_no_good_index_used
 Optimizer metric, number of 'no good index used'. More...
 
ulonglong m_cpu_time
 CPU time. More...
 
ulonglong m_max_controlled_memory
 
ulonglong m_max_total_memory
 
bool m_sqltext_truncated
 True if SQL_TEXT was truncated. More...
 
uint m_sqltext_cs_number
 Statement character set number. More...
 
bool m_secondary
 Executed on the secondary engine. More...
 
char * m_sqltext
 SQL_TEXT. More...
 
uint m_sqltext_length
 Length of m_sqltext. More...
 
sql_digest_storage m_digest_storage
 Statement digest. More...
 
uint m_message_text_length
 Length of m_message_text. More...
 
char m_message_text [MYSQL_ERRMSG_SIZE+1]
 Diagnostics area, message text. More...
 
- Public Attributes inherited from PFS_events
ulonglong m_thread_internal_id
 THREAD_ID. More...
 
ulonglong m_event_id
 EVENT_ID. More...
 
ulonglong m_end_event_id
 END_EVENT_ID. More...
 
enum_event_type m_event_type
 (EVENT_TYPE) More...
 
ulonglong m_nesting_event_id
 NESTING_EVENT_ID. More...
 
enum_event_type m_nesting_event_type
 NESTING_EVENT_TYPE. More...
 
uint m_nesting_event_level
 NESTING_EVENT_LEVEL. More...
 
PFS_instr_classm_class
 Instrument metadata. More...
 
ulonglong m_timer_start
 Timer start. More...
 
ulonglong m_timer_end
 Timer end. More...
 
const char * m_source_file
 Location of the instrumentation in the source code (file name). More...
 
uint m_source_line
 Location of the instrumentation in the source code (line number). More...
 

Additional Inherited Members

- Public Member Functions inherited from PFS_events
PFS_eventsoperator= (const PFS_events &rhs)=default
 

Detailed Description

A statement record.

Member Data Documentation

◆ m_cpu_time

ulonglong PFS_events_statements::m_cpu_time

CPU time.

Expressed in STORAGE units (nanoseconds).

◆ m_created_tmp_disk_tables

ulonglong PFS_events_statements::m_created_tmp_disk_tables

Optimizer metric, number of temporary tables created on disk.

◆ m_created_tmp_tables

ulonglong PFS_events_statements::m_created_tmp_tables

Optimizer metric, number of temporary tables created.

◆ m_current_schema_name

PFS_schema_name PFS_events_statements::m_current_schema_name

Database name.

◆ m_digest_storage

sql_digest_storage PFS_events_statements::m_digest_storage

Statement digest.

This underlying token array storage pointer is immutable, and always point to pre allocated memory.

◆ m_error_count

uint PFS_events_statements::m_error_count

Diagnostics area, error count.

◆ m_lock_time

ulonglong PFS_events_statements::m_lock_time

Locked time.

◆ m_max_controlled_memory

ulonglong PFS_events_statements::m_max_controlled_memory

◆ m_max_total_memory

ulonglong PFS_events_statements::m_max_total_memory

◆ m_message_text

char PFS_events_statements::m_message_text[MYSQL_ERRMSG_SIZE+1]

Diagnostics area, message text.

◆ m_message_text_length

uint PFS_events_statements::m_message_text_length

Length of m_message_text.

This is placed before m_message_text[], for data locality.

◆ m_no_good_index_used

ulonglong PFS_events_statements::m_no_good_index_used

Optimizer metric, number of 'no good index used'.

◆ m_no_index_used

ulonglong PFS_events_statements::m_no_index_used

Optimizer metric, number of 'no index used'.

◆ m_object_name

PFS_object_name PFS_events_statements::m_object_name

◆ m_rows_affected

ulonglong PFS_events_statements::m_rows_affected

Diagnostics area, rows affected.

◆ m_rows_examined

ulonglong PFS_events_statements::m_rows_examined

Optimizer metric, number of rows examined.

◆ m_rows_sent

ulonglong PFS_events_statements::m_rows_sent

Optimizer metric, number of rows sent.

◆ m_schema_name

PFS_schema_name PFS_events_statements::m_schema_name

◆ m_secondary

bool PFS_events_statements::m_secondary

Executed on the secondary engine.

◆ m_select_full_join

ulonglong PFS_events_statements::m_select_full_join

Optimizer metric, number of full join.

◆ m_select_full_range_join

ulonglong PFS_events_statements::m_select_full_range_join

Optimizer metric, number of full range join.

◆ m_select_range

ulonglong PFS_events_statements::m_select_range

Optimizer metric, number of select range.

◆ m_select_range_check

ulonglong PFS_events_statements::m_select_range_check

Optimizer metric, number of select range checks.

◆ m_select_scan

ulonglong PFS_events_statements::m_select_scan

Optimizer metric, number of select scans.

◆ m_sort_merge_passes

ulonglong PFS_events_statements::m_sort_merge_passes

Optimizer metric, number of sort merge passes.

◆ m_sort_range

ulonglong PFS_events_statements::m_sort_range

Optimizer metric, number of sort ranges.

◆ m_sort_rows

ulonglong PFS_events_statements::m_sort_rows

Optimizer metric, number of sort rows.

◆ m_sort_scan

ulonglong PFS_events_statements::m_sort_scan

Optimizer metric, number of sort scans.

◆ m_sp_type

enum_object_type PFS_events_statements::m_sp_type

◆ m_sql_errno

uint PFS_events_statements::m_sql_errno

Diagnostics area, error number.

◆ m_sqlstate

char PFS_events_statements::m_sqlstate[SQLSTATE_LENGTH]

Diagnostics area, SQLSTATE.

◆ m_sqltext

char* PFS_events_statements::m_sqltext

SQL_TEXT.

This pointer is immutable, and always point to pre allocated memory.

◆ m_sqltext_cs_number

uint PFS_events_statements::m_sqltext_cs_number

Statement character set number.

◆ m_sqltext_length

uint PFS_events_statements::m_sqltext_length

Length of m_sqltext.

◆ m_sqltext_truncated

bool PFS_events_statements::m_sqltext_truncated

True if SQL_TEXT was truncated.

◆ m_statement_id

ulonglong PFS_events_statements::m_statement_id

STATEMENT_ID, from the SQL layer QUERY_ID.

◆ m_warning_count

uint PFS_events_statements::m_warning_count

Diagnostics area, warning count.


The documentation for this struct was generated from the following file: