OpenParable
Skip to content
← Back to skills

Startup Time Profiler

Testing & Quality
startup-time-profiler

Startup Time Profiler is an Agent Skill for testing & quality published in the a5c-ai/babysitter repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Profile and optimize application startup time for desktop applications

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/a5c-ai/babysitter/blob/HEAD/library/specializations/desktop-development/skills/startup-time-profiler/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/startup-time-profiler, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

startup-time-profiler

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

Capabilities

  • Measure cold and warm start times
  • Identify module loading bottlenecks
  • Profile initialization phases
  • Generate timeline visualizations
  • Provide optimization recommendations
  • Set up CI performance tracking

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

MetricGoodAcceptablePoor
Cold start< 2s< 4s> 6s
Warm start< 1s< 2s> 3s
Window visible< 1.5s< 3s> 5s

Related Skills

  • memory-leak-detector
  • bundle-size-analyzer