'MCP port of the running trace server. Defaults to 5748.'
'MCP port of the running trace server. Defaults to 5748.'
).argParser(parseValidPositiveInteger)
).argParser(parseValidPositiveInteger)
)
)
.addOption(
newOption(
'--tool <tool>',
'Tool to call: "query_spans" (default) lists spans, "flat_profile" sums time and allocations by name across a subtree, "memory_timeline" shows committed memory and RSS over time with phase markers.'
'Span ID to enumerate children of. Omit for root level.'
'Span ID to enumerate children of (or, for flat_profile and memory_timeline, to scope to). Omit for root level.'
)
)
)
)
.addOption(
.addOption(
...
@@ -833,8 +839,18 @@ internal
...
@@ -833,8 +839,18 @@ internal
.addOption(
.addOption(
newOption(
newOption(
'--sort <mode>',
'--sort <mode>',
'Sort mode: "value" for corrected duration descending, "name" for alphabetical, "allocations" for total allocated bytes descending, "persistent-allocations" for persistentAllocations descending.'
'Sort mode. query_spans: "value" for corrected duration descending, "name" for alphabetical, "allocations" for total allocated bytes descending, "persistent-allocations" for persistentAllocations descending. flat_profile: "self" (default), "total", "self-allocations", "self-persistent-allocations" or "count".'