Code profiler

From a5c-ai/babysitter · View interactive version

Code profiler is an AI agent skill from the GitHub repository a5c-ai/babysitter. Profile code performance and identify bottlenecks

How to use this skill

Skill file

Code Profiler Skill

Purpose

Profile algorithm implementations to identify performance bottlenecks and optimization opportunities.

Capabilities

Target Processes

Profiling Dimensions

Time Profiling

Memory Profiling

Cache Analysis

Input Schema

{
  "type": "object",
  "properties": {
    "code": { "type": "string" },
    "language": { "type": "string" },
    "profileType": {
      "type": "string",
      "enum": ["time", "memory", "cache", "all"]
    },
    "testInput": { "type": "string" },
    "iterations": { "type": "integer", "default": 1 }
  },
  "required": ["code", "profileType"]
}

Output Schema

{
  "type": "object",
  "properties": {
    "success": { "type": "boolean" },
    "timing": { "type": "object" },
    "memory": { "type": "object" },
    "hotSpots": { "type": "array" },
    "recommendations": { "type": "array" }
  },
  "required": ["success"]
}

Integration

Can integrate with profiling tools like gprof, perf, Valgrind, cProfile, and language-specific profilers.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.