profile

Profile CPU and memory usage of Go packages with pprof.

23|1|Updated Feb 1, 2026
One-click install
npx skills add https://github.com/PeterBooker/veloria --skill profile-peterbooker
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: profile
Source: https://github.com/PeterBooker/veloria/tree/main/.claude/skills/profile
Command: npx skills add https://github.com/PeterBooker/veloria --skill profile-peterbooker

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps identify and resolve performance issues in Go code by pinpointing CPU and memory hotspots, reducing resource consumption and improving application responsiveness.

Core Features & Use Cases

  • CPU Profiling: Analyzes CPU usage to find functions consuming the most processing time.
  • Memory Profiling: Identifies memory allocation patterns and potential leaks.
  • Use Case: When Veloria's API is experiencing high latency or consuming excessive CPU, use this Skill to profile specific packages like the indexing or repository modules to find the exact functions causing the slowdown.

Quick Start

Profile CPU usage for all packages in the current directory.

Frequently Asked Questions about profile

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find CPU and memory bottlenecks in a Go application?

To find CPU and memory bottlenecks in a Go application, execute CPU and memory profiling using the pprof tool. This analyzes function performance and resource consumption to pinpoint specific hotspots causing slowdowns.

How do I profile memory allocation patterns in specific Go packages?

Profile memory allocation patterns in specific Go packages by executing memory profiling on the specified package paths. This identifies memory allocation hotspots and potential leaks within the targeted modules.

What is the best way to analyze high latency in Go code?

The best way to analyze high latency in Go code is through CPU profiling. It analyzes CPU usage to find the exact functions consuming the most processing time within your specified package paths.

Can I use pprof to debug performance issues across an entire project?

Yes, you can use pprof to debug performance issues across a project by profiling CPU usage for all packages in the current directory. This provides detailed analysis of function performance and resource consumption.

When should I use Go profiling to optimize my application?

Use Go profiling to optimize your application when experiencing high latency or excessive CPU consumption. Profiling helps pinpoint CPU and memory hotspots to reduce resource usage and improve responsiveness.