Skip to content

[FEATURE] Add --profile flag for performance profiling #19

@jwesleye

Description

@jwesleye

Feature Description

Detailed performance profiling showing timing breakdown, memory usage, and bottlenecks.

Problem/Motivation

When optimizing agents, I need to understand where time is spent (API calls, tool execution, parsing).

Proposed Solution

chat_loop myagent --profile

# Shows detailed breakdown:
# Query processing: 2.3s
#   - API call: 2.1s (91%)
#   - Tool execution: 0.15s (7%)
#   - Parsing: 0.05s (2%)
# Memory peak: 234 MB

Benefits

  • Identify performance bottlenecks
  • Optimize slow agents
  • Debug latency issues
  • Resource monitoring

Priority

  • Critical
  • High
  • Medium
  • Low

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requeststatus: staleNo activity for extended period

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions