Cli
provide.foundation.profiling.cli
¶
TODO: Add module docstring.
Classes¶
Functions¶
profile_command
¶
Show profiling metrics for Foundation telemetry.
Displays real-time performance metrics including throughput, latency, and emoji processing overhead.
Examples:
foundation profile # Human-readable output foundation profile --json # JSON output for monitoring
Source code in provide/foundation/profiling/cli.py
register_profile_command
¶
Register the profile command with the Hub.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
hub
|
Hub
|
Hub instance to register with |
required |
Source code in provide/foundation/profiling/cli.py
show_profile_metrics
¶
Display current profiling metrics.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ctx
|
CLIContext
|
CLI context with output preferences |
required |
Example
$ foundation profile π Performance Metrics π¨ Messages/sec: 14523 β±οΈ Avg latency: 0.07ms π¨ Emoji overhead: 3.2%