Startup time profiler

From a5c-ai/babysitter · View interactive version

Startup time profiler is an AI agent skill from the GitHub repository a5c-ai/babysitter. Profile and optimize application startup time for desktop applications

How to use this skill

Skill file

startup-time-profiler

Profile and optimize application startup time, identifying bottlenecks in initialization, module loading, and rendering.

Capabilities

Input Schema

{
  "type": "object",
  "properties": {
    "projectPath": { "type": "string" },
    "framework": { "enum": ["electron", "tauri", "native"] },
    "iterations": { "type": "number", "default": 5 }
  },
  "required": ["projectPath"]
}

Electron Startup Profiling

// Add to main.js
const startTime = Date.now();

app.on('ready', () => {
  console.log(`App ready: ${Date.now() - startTime}ms`);
});

// Enable tracing
app.commandLine.appendSwitch('trace-startup');
app.commandLine.appendSwitch('trace-startup-file', 'startup-trace.json');

Optimization Techniques

  1. Lazy load modules
  2. Defer non-critical initialization
  3. Optimize bundle size
  4. Use V8 snapshots
  5. Preload critical resources

Benchmarks

| Metric | Good | Acceptable | Poor |

|--------|------|------------|------|

| Cold start | < 2s | < 4s | > 6s |

| Warm start | < 1s | < 2s | > 3s |

| Window visible | < 1.5s | < 3s | > 5s |

Related Skills

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.