enum ProfileSection: string
Public API: explicitly declared with @visibility public.

A group of columns SHOW PROFILE adds to the stage and its duration.

Each case holds its keywords. MEMORY is accepted and adds no column, as the server does not implement it; ALL adds every group. Source: https://dev.mysql.com/doc/refman/8.4/en/show-profile.html.

Reading the keywords of a sectiondoctest
\SqlSemantics\Platform\MySql\Statement\Utility\Show\Session\ProfileSection::ContextSwitches->value // => 'CONTEXT SWITCHES'

Cases§

case All = 'ALL'
case BlockIo = 'BLOCK IO'
case ContextSwitches = 'CONTEXT SWITCHES'
case Cpu = 'CPU'
case Ipc = 'IPC'
case Memory = 'MEMORY'
case PageFaults = 'PAGE FAULTS'
case Source = 'SOURCE'
case Swaps = 'SWAPS'

Methods§

public function positions(): list<int>

Answers the positions of the columns the section adds in the layout with every section.

Returns

list<int>
Reading the columns of the CPU sectiondoctest
\SqlSemantics\Platform\MySql\Statement\Utility\Show\Session\ProfileSection::Cpu->positions() // => [2, 3]
Calls 10

Test cases 1§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1

Relations§

Constant reads 10