devtools_profiler_cli library

CLI and MCP entrypoints for the DevTools profiler backend.

Classes

ProfilerMcpServer
An MCP server that exposes the profiler backend as tools.

Functions

runCli(List<String> arguments, {ProfileRunner? runner, IOSink? output, IOSink? errorOutput}) Future<int>
Runs the devtools-profiler CLI.
serveMcp({required ProfileRunner runner, Stream<List<int>>? input, StreamSink<List<int>>? output, Sink<String>? protocolLogSink}) Future<void>
Serves the profiler backend over the MCP stdio transport.