enumProfileSection
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.
\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>\SqlSemantics\Platform\MySql\Statement\Utility\Show\Session\ProfileSection::Cpu->positions() // => [2, 3]Calls 10
- class-const ProfileSection::All() line 40
- function-call
rangeline 40 - class-const ProfileSection::Cpu() line 41
- class-const ProfileSection::ContextSwitches() line 42
- class-const ProfileSection::BlockIo() line 43
- class-const ProfileSection::Ipc() line 44
- class-const ProfileSection::PageFaults() line 45
- class-const ProfileSection::Swaps() line 46
- class-const ProfileSection::Source() line 47
- class-const ProfileSection::Memory() line 48
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
- class-const SqlSemantics\Platform\MySql\Lowering\Utility\Show\ClauseRule packages/sql-semantics-mysql/src/Lowering/Utility/Show/ClauseRule.php:75
- class-const SqlSemantics\Platform\MySql\Lowering\Utility\Show\ClauseRule packages/sql-semantics-mysql/src/Lowering/Utility/Show/ClauseRule.php:75
- class-const SqlSemantics\Platform\MySql\Lowering\Utility\Show\ClauseRule packages/sql-semantics-mysql/src/Lowering/Utility/Show/ClauseRule.php:75
- class-const SqlSemantics\Platform\MySql\Lowering\Utility\Show\ClauseRule packages/sql-semantics-mysql/src/Lowering/Utility/Show/ClauseRule.php:76
- class-const SqlSemantics\Platform\MySql\Lowering\Utility\Show\ClauseRule packages/sql-semantics-mysql/src/Lowering/Utility/Show/ClauseRule.php:76
- class-const SqlSemantics\Platform\MySql\Lowering\Utility\Show\ClauseRule packages/sql-semantics-mysql/src/Lowering/Utility/Show/ClauseRule.php:77
- class-const SqlSemantics\Platform\MySql\Lowering\Utility\Show\ClauseRule packages/sql-semantics-mysql/src/Lowering/Utility/Show/ClauseRule.php:77
- class-const SqlSemantics\Platform\MySql\Lowering\Utility\Show\ClauseRule packages/sql-semantics-mysql/src/Lowering/Utility/Show/ClauseRule.php:77
- class-const SqlSemantics\Platform\MySql\Lowering\Utility\Show\ClauseRule packages/sql-semantics-mysql/src/Lowering/Utility/Show/ClauseRule.php:78
- class-const SqlSemantics\Platform\MySql\Statement\Utility\Show\Session\ShowProfile::__construct() packages/sql-semantics-mysql/src/Statement/Utility/Show/Session/ShowProfile.php:52