Служебные инструменты · perfmon
Производительность сайта · чтение · Открытия страниц: одна запись
perfmon_site_perfmon_m291_readЧтениеОткрытия страниц: одна запись · Подготовить штатный файловый тест PHP · Perfmon: предпросмотр сброса всех настроек.
Действия
В tools/call передайте имя инструмента, значение action и параметры действия во вложенном объекте arguments.
Ошибки только выбранного открытия страницы. Текст ошибки по умолчанию исключён; reveal_details:true с правом W раскрывает его. String filter operator *% uses original fulltext-like tokenization and LIKE predicates, preserving AND within a phrase and OR between phrases. It does not use MATCH indexes or the FT token-size memo. Raw NULL phrases remain unsupported. Empty or punctuation-only phrases, including four-byte characters discarded by the original splitter, can drop a predicate and are disclosed in warnings; arguments are not rewritten. Logical ? uses the already-loaded original parser, functions and effective error-message state; cold or lazy language resolution remains unsupported. Existing message overrides, empty or whitespace messages, boolean operators and original diagnostic or condition-drop behavior are preserved; arguments are not rewritten. MATCH operators * and *= remain separately unqualified. Optional query uses the original all-hit Error GetList; outer hit_id is optional and AND-limits its filter. Without query hit_id and the legacy lookup/DTO remain required. Grouped errors require explicit native grouped-safe order. ERRSTR predicate, sort or grouped dimension requires fresh ordinary W; revealed error bytes require W, without an administrator blanket. Original COUNT-only adaptation and unpaged result counts are separate; no native pagination argument exists.
hit_id- целое число · обязательный параметр
limit- целое число
{
"type": "object",
"properties": {
"hit_id": {
"type": "integer",
"minimum": 1
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100
}
},
"required": [
"hit_id"
],
"additionalProperties": false,
"anyOf": [
{
"required": [
"hit_id"
]
},
{
"required": [
"query"
]
}
]
}Чтение точного ID. Данные передаются без исполнения записанного SQL; подробности раскрываются только по отдельному флагу и с правом W.
record_id- целое число · обязательный параметр
{
"type": "object",
"properties": {
"record_id": {
"type": "integer",
"minimum": 1
}
},
"required": [
"record_id"
],
"additionalProperties": false
}Штатные записи с ограничением количества и продолжением после ID. Текст запросов и адреса с параметрами по умолчанию скрыты; reveal_details:true требует права W. Optional query selects original recorded Hit fields, typed filters, grouping, native ordering and counts. Offset/limit bound the returned page; SelectedRowsCount requires a complete buffered native result, and exact aggregate count is a separate live observation. Revealed URI bytes, native REQUEST_URI ordering and grouping by the full REQUEST_URI require fresh W; redacted URI projection remains available at R. URI operations do not require administrator status. The fixed current-default MySQL Source profile refuses unsupported question/fulltext and native-navigation states before the producer. Omitting query preserves the legacy DTO. query.native_nav opts into original native page/count behavior and requires ack_native_navigation_state:true. Omit outer limit/after_id; only rows, selected_rows, offset0 and include_total_count:false are compatible. Original navigation changes request NavNum and may change qualified existing session-local navigation state; no session is started, restored or saved by the tool. The complete native page can contain199 rows at page_size100 when descending. Native counts preserve original family/group units and live count/data races; native_navigation replaces ordinary offset/limit/more fields. Session backend epilogue persistence is unverified. String filter operator *% uses original fulltext-like tokenization and LIKE predicates, preserving AND within a phrase and OR between phrases. It does not use MATCH indexes or the FT token-size memo. Raw NULL phrases remain unsupported. Empty or punctuation-only phrases, including four-byte characters discarded by the original splitter, can drop a predicate and are disclosed in warnings; arguments are not rewritten. Logical ? uses the already-loaded original parser, functions and effective error-message state; cold or lazy language resolution remains unsupported. Existing message overrides, empty or whitespace messages, boolean operators and original diagnostic or condition-drop behavior are preserved; arguments are not rewritten. MATCH operators * and *= remain separately unqualified.
limit- целое число
after_id- целое число
{
"type": "object",
"properties": {
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 100,
"default": 20
},
"after_id": {
"type": "integer",
"minimum": 0,
"default": 0
}
},
"required": [],
"additionalProperties": false
}Открытия страниц: одна запись · Подготовить штатный файловый тест PHP · Perfmon: предпросмотр сброса всех настроек.
Параметры не требуются. Передайте пустой объект {}.
{
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}Открытия страниц: одна запись · Подготовить штатный файловый тест PHP · Perfmon: предпросмотр сброса всех настроек.
job_id- строка · обязательный параметр
{
"type": "object",
"properties": {
"job_id": {
"type": "string",
"minLength": 64,
"maxLength": 64,
"pattern": "^[a-f0-9]{64}$(?![\\s\\S])"
}
},
"required": [
"job_id"
],
"additionalProperties": false
}Штатный GetPHPFilesMark создаёт, исполняет и удаляет perfmon0.php…perfmon99.php в настроенном upload: 4×100 циклов, 3100 байт на файл. Preview не запускает измерение и возвращает связанную с пользователем и каталогом контрольную версию. Оба вызова требуют права perfmon W и включённых диагностических операций с разрешением записи в политике MCP. Только локальный POSIX каталог владельца PHP с запретом групповой/общей записи, штатный исходник, включённые короткие теги и отключённый OPcache. Блокировка сериализует только MCP: атомарной защиты от внешнего writer/штатной панели нет. При посторонней параллельной записи профиль неприменим. После ошибки начатый тест не повторяется и его остатки автоматически не удаляются. Настройки и история не сохраняются.
Параметры не требуются. Передайте пустой объект {}.
{
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}Предварительная проверка · Группа однотипных ошибок производительности
perfmon_error_signature_previewОткрытия страниц: одна запись · Подготовить штатный файловый тест PHP · Perfmon: предпросмотр сброса всех настроек.
file- строка · обязательный параметр
line- целое число · обязательный параметр
{
"type": "object",
"properties": {
"file": {
"type": "string",
"maxLength": 65535
},
"line": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
}
},
"required": [
"file",
"line"
],
"additionalProperties": false
}Открытия страниц: одна запись · Подготовить штатный файловый тест PHP · Perfmon: предпросмотр сброса всех настроек.
file- строка · обязательный параметр
line- целое число · обязательный параметр
expected_revision- строка · обязательный параметр
request_id- строка · обязательный параметр
{
"type": "object",
"properties": {
"file": {
"type": "string",
"maxLength": 65535
},
"line": {
"type": "integer",
"minimum": -2147483648,
"maximum": 2147483647
},
"expected_revision": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"request_id": {
"type": "string",
"pattern": "^[a-f0-9]{32}$"
}
},
"required": [
"file",
"line",
"expected_revision",
"request_id"
],
"additionalProperties": false
}Открытия страниц: одна запись · Подготовить штатный файловый тест PHP · Perfmon: предпросмотр сброса всех настроек.
file_id- целое число · обязательный параметр
{
"type": "object",
"properties": {
"file_id": {
"type": "integer",
"minimum": 1,
"maximum": 2147483647
}
},
"required": [
"file_id"
],
"additionalProperties": false
}Открытия страниц: одна запись · Подготовить штатный файловый тест PHP · Perfmon: предпросмотр сброса всех настроек.
table- строка · обязательный параметр
connection- строка
offset- целое число
limit- целое число
expected_sha256- строка
{
"type": "object",
"properties": {
"table": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"connection": {
"type": "string",
"pattern": "^[A-Za-z0-9_][A-Za-z0-9_.-]{0,63}$",
"maxLength": 64
},
"offset": {
"type": "integer",
"minimum": 0,
"default": 0
},
"limit": {
"type": "integer",
"minimum": 1,
"maximum": 16384,
"default": 4096
},
"expected_sha256": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
},
"required": [
"table"
],
"additionalProperties": false
}Открытия страниц: одна запись · Подготовить штатный файловый тест PHP · Perfmon: предпросмотр сброса всех настроек.
Параметры не требуются. Передайте пустой объект {}.
{
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
}Открытия страниц: одна запись · Подготовить штатный файловый тест PHP · Perfmon: предпросмотр сброса всех настроек.
expected_revision- строка · обязательный параметр
request_id- строка · обязательный параметр
{
"type": "object",
"properties": {
"expected_revision": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
},
"request_id": {
"type": "string",
"pattern": "^[a-f0-9]{32}$"
}
},
"required": [
"expected_revision",
"request_id"
],
"additionalProperties": false
}Открытия страниц: одна запись · Подготовить штатный файловый тест PHP · Perfmon: предпросмотр сброса всех настроек.
connection- строка
table- строка · обязательный параметр
action- строка · обязательный параметр
maintenance_window- строка · обязательный параметр
acknowledge_quiescence- логическое значение · обязательный параметр
{
"type": "object",
"properties": {
"connection": {
"type": "string",
"pattern": "^[A-Za-z0-9_][A-Za-z0-9_.-]{0,63}$",
"maxLength": 64,
"default": "default"
},
"table": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"action": {
"type": "string",
"enum": [
"convert_to_MYISAM",
"convert_to_INNODB",
"optimize"
]
},
"maintenance_window": {
"type": "string",
"minLength": 32,
"maxLength": 32,
"pattern": "^[a-f0-9]{32}$"
},
"acknowledge_quiescence": {
"type": "boolean",
"enum": [
true
]
}
},
"required": [
"table",
"action",
"maintenance_window",
"acknowledge_quiescence"
],
"additionalProperties": false
}Открытия страниц: одна запись · Подготовить штатный файловый тест PHP · Perfmon: предпросмотр сброса всех настроек.
connection- строка
table- строка · обязательный параметр
action- строка · обязательный параметр
maintenance_window- строка · обязательный параметр
acknowledge_quiescence- логическое значение · обязательный параметр
expected_revision- строка · обязательный параметр
request_id- строка · обязательный параметр
{
"type": "object",
"properties": {
"connection": {
"type": "string",
"pattern": "^[A-Za-z0-9_][A-Za-z0-9_.-]{0,63}$",
"maxLength": 64,
"default": "default"
},
"table": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"action": {
"type": "string",
"enum": [
"convert_to_MYISAM",
"convert_to_INNODB",
"optimize"
]
},
"maintenance_window": {
"type": "string",
"minLength": 32,
"maxLength": 32,
"pattern": "^[a-f0-9]{32}$"
},
"acknowledge_quiescence": {
"type": "boolean",
"enum": [
true
]
},
"expected_revision": {
"type": "string",
"minLength": 64,
"maxLength": 64,
"pattern": "^[a-f0-9]{64}$"
},
"request_id": {
"type": "string",
"minLength": 32,
"maxLength": 32,
"pattern": "^[a-f0-9]{32}$"
}
},
"required": [
"table",
"action",
"maintenance_window",
"acknowledge_quiescence",
"expected_revision",
"request_id"
],
"additionalProperties": false
}