Cli
π€ AI-Generated Content
This documentation was generated with AI assistance and is still being audited. Some, or potentially a lot, of this information may be inaccurate. Learn more.
provide.foundation.profiling.cli
¶
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 |
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%