Agent skill

Pvanalyze

by managedcode in managedcode/dotnet-skills

Use pvanalyze to inspect existing .NET .nettrace files from the command line, including GC, JIT, CPU stacks, allocation, DATAS, events, exceptions, timeline, and call-tree analysis with JSON or…

MITAuto-check passedAgent Workflows

Install Pvanalyze

skills CLI
$ npx skills add managedcode/dotnet-skills --skill pvanalyze -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install managedcode/dotnet-skills pvanalyze --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/managedcode/dotnet-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/catalog/Tools/pvanalyze/skills/pvanalyze .claude/skills/pvanalyze && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
pvanalyze
GitHub stars
486
Token cost
~2k tokens
SKILL.md length
717 words
Files
4 (incl. references)
Skills in repo
81
Repo updated
First seen
Licence
MIT

At a glance

Use pvanalyze to inspect existing .NET .nettrace files from the command line, including GC, JIT, CPU stacks, allocation, DATAS, events, exceptions, timeline, and call-tree analysis with JSON or…

  • Works in 6 steps: Confirm the trace path and whether it… → Run pvanalyze info first to verify the… → Pick one focused analysis command → …
  • : the user mentions pvanalyze
  • SKILL.md covers Trigger On, Workflow, Current Upstream Notes and Install, plus 6 more sections
  • Calls dotnet and git; reaches github.com

What it does

Pvanalyze is an agent skill from managedcode/dotnet-skills. Use pvanalyze to inspect existing .NET .nettrace files from the command line, including GC, JIT, CPU stacks, allocation, DATAS, events, exceptions, timeline, and call-tree analysis with JSON or SpeedScope. USE FOR: the user mentions pvanalyze, PerfView-style CLI trace analysis, or cross-platform .nettrace inspection; the task starts from an existing .nettrace file and needs. DO NOT USE FOR: unrelated stacks; generic tasks that do not need this specific guidance. INVOKES: inspect the repository context, edit…

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `manifest.json`, `references/commands.md` and `references/overview.md`). Compatibility notes: Requires .NET 8 or later to run pvanalyze; trace collection usually requires dotnet-trace. Some scenarios require traces captured with verbose runtime…

It sits in Agent Workflows, covering Codebase knowledge for agents. It works with .NET. The repository describes itself as: Installable .NET skill catalog and CLI for Codex, Claude Code, GitHub Copilot, and Gemini. The licence is MIT.

When your agent uses it

  • : the user mentions pvanalyze
  • PerfView-style CLI trace analysis
  • Cross-platform .nettrace inspection
  • The task starts from an existing .nettrace file and needs

Example prompts

  • “/pvanalyze”

Requirements

  • Compatibility (from SKILL.md): Requires .NET 8 or later to run `pvanalyze`; trace collection usually requires `dotnet-trace`. Some scenarios require traces captured with verbose runtime providers or .NET 9+ DATAS events.

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Confirm the trace path and whether it was collected with the events needed for the question.
  2. Run pvanalyze info first to verify the file opens and contains the expected processes.
  3. Pick one focused analysis command
  4. Prefer --format json when another tool or agent will consume the output.
  5. Add --from and --to only after the baseline command confirms the interesting time window.
  6. Use pvanalyze clean when generated .pvanalyze.etlx cache files should be removed.

What it can do on your machine

Read from SKILL.md and the folder at commit 535dd55. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • dotnet
    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Requires .NET 8 or later to run `pvanalyze`; trace collection usually requires `dotnet-trace`. Some scenarios require traces captured with verbose runtime providers or .NET 9+ DATAS events.

    From compatibility in the SKILL.md frontmatter.

Context cost

Pvanalyze loads about 2k tokens when it runs, and up to ~3.7k if it reads all its reference files. Until then it costs about 156 tokens; SKILL.md has 717 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~156
When it runs · the whole SKILL.md, loaded when a task matches
~2k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~3.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from managedcode/dotnet-skills at commit 535dd55, republished under its MIT licence (© managedcode). 717 words, ~1,978 tokens.

Download SKILL.mdSave it as .claude/skills/pvanalyze/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
pvanalyze
description
Use `pvanalyze` to inspect existing .NET `.nettrace` files from the command line, including GC, JIT, CPU stacks, allocation, DATAS, events, exceptions, timeline, and call-tree analysis with JSON or SpeedScope. USE FOR: the user mentions pvanalyze, PerfView-style CLI trace analysis, or cross-platform .nettrace inspection; the task starts from an existing .nettrace file and needs. DO NOT USE FOR: unrelated stacks; generic tasks that do not need this specific guidance. INVOKES: inspect the repository context, edit targeted files, and run relevant build, test, lint, or validation commands when changes are made.
compatibility
Requires .NET 8 or later to run `pvanalyze`; trace collection usually requires `dotnet-trace`. Some scenarios require traces captured with verbose runtime providers or .NET 9+ DATAS events.

pvanalyze

Trigger On

  • the user mentions pvanalyze, PerfView-style CLI trace analysis, or cross-platform .nettrace inspection
  • the task starts from an existing .nettrace file and needs readable terminal or JSON output
  • an agent or CI workflow needs GC, JIT, CPU stack, allocation, event, exception, timeline, or call-tree summaries
  • SpeedScope export is useful but the source artifact is a .nettrace

Use dotnet-trace-collect or profiling first when the task is mostly about collecting the trace. Use pvanalyze once a trace artifact exists or when the user wants the specific command surface.

Workflow

  1. Confirm the trace path and whether it was collected with the events needed for the question.
  2. Run pvanalyze info <trace.nettrace> first to verify the file opens and contains the expected processes.
  3. Pick one focused analysis command:
    • gcstats for GC count, heap size, pause, and GC timeline questions
    • alloc for allocation-by-type questions
    • datas for Dynamic Adaptation To Application Sizes heap-count tuning
    • jitstats for JIT compilation cost
    • cpustacks for top CPU methods, module grouping, namespace grouping, or SpeedScope export
    • calltree for hot paths and caller/callee exploration
    • events for provider, event type, payload, PID, or TID filtering
    • exceptions for thrown exception summaries and details
    • timeline or snapshot when an agent needs time-bucketed context
  4. Prefer --format json when another tool or agent will consume the output.
  5. Add --from and --to only after the baseline command confirms the interesting time window.
  6. Use pvanalyze clean <trace-or-directory> when generated .pvanalyze.etlx cache files should be removed.

Current Upstream Notes

  • The upstream README still positions pvanalyze as a cross-platform .nettrace analyzer and explicitly says --help plus the README are the intended agent context rather than a separate upstream SKILL.md or AGENTS.md.
  • Keep this catalog skill focused on practical command selection and trace prerequisites. Do not add pvanalyze as a broad diagnostics replacement for trace collection, counters, dumps, or Microsoft-only tooling.

Install

The upstream README documents two install paths:

bash
# .NET 10+ one-shot execution path
dnx pvanalyze

# Global tool path
dotnet tool install --global pvanalyze

If the NuGet package is not resolvable in the current environment, build or pack from source:

bash
git clone https://github.com/adityamandaleeka/pvanalyze
cd pvanalyze
dotnet build -c Release
dotnet run -c Release -- info ./trace.nettrace

The source project is configured as a .NET tool with PackageId pvanalyze, ToolCommandName pvanalyze, and VersionPrefix 0.1.0.

Install trace collection support when you need to create the input artifact:

bash
dotnet tool install --global dotnet-trace
dotnet-trace --version
pvanalyze --help

Practical Usage

Read trace metadata and GC signal
bash
pvanalyze info ./trace.nettrace
pvanalyze gcstats ./trace.nettrace --format json
pvanalyze gcstats ./trace.nettrace --timeline --longest 5
pvanalyze gcstats ./trace.nettrace --from 1000 --to 2000 --timeline --format json
Write CPU outputs for review
bash
pvanalyze cpustacks ./trace.nettrace --top 20
pvanalyze cpustacks ./trace.nettrace --group-by module --top 10 --format json
pvanalyze cpustacks ./trace.nettrace --format speedscope --output ./trace.speedscope.json
Drill into events, exceptions, and call trees
bash
pvanalyze events ./trace.nettrace --list --format json
pvanalyze events ./trace.nettrace --provider DotNETRuntime --type GCStart --limit 50
pvanalyze exceptions ./trace.nettrace --type NullReference --format json
pvanalyze calltree ./trace.nettrace --hot-path --depth 5 --format json
pvanalyze calltree ./trace.nettrace --caller-callee "Serialize"
Collect traces with required event detail

General trace:

bash
dotnet-trace collect --process-id <PID> --output ./trace.nettrace
dotnet-trace collect -- dotnet run -c Release

Allocation analysis requires allocation events:

bash
dotnet-trace collect --providers "Microsoft-Windows-DotNETRuntime:0x200001:5" -- dotnet run -c Release
pvanalyze alloc ./trace.nettrace --group-by type --top 20 --format json

DATAS analysis requires .NET 9+ DATAS events and verbose GC runtime events:

bash
DOTNET_GCDynamicAdaptationMode=1 dotnet-trace collect -p <PID> --providers "Microsoft-Windows-DotNETRuntime:0x4C14FCCBD:5"
pvanalyze datas ./trace.nettrace --changes-only --format json
Show full SKILL.md (313 more words)Show less

Option Patterns

  • Use --process <name> on gcstats, jitstats, alloc, or datas when a trace includes multiple .NET processes.
  • Use --from <ms> and --to <ms> for GC, CPU, allocation, event, exception, timeline, and call-tree time windows.
  • Use --format json for automation and --format text for human terminal review.
  • Use cpustacks --group-by method|module|namespace and --inclusive to change CPU aggregation.
  • Use calltree --hot-path, --caller-callee <method>, --depth <n>, and --min-percent <n> to keep stack output focused.
  • Use timeline --lanes gc,cpu,exceptions,alloc,jit,events --buckets <n> for a compact multi-signal view.
  • Use snapshot --at <ms> --window <ms> when the question is "what was happening around this timestamp?"

Constraints

  • pvanalyze analyzes trace artifacts; it does not replace dotnet-trace for collection.
  • CPU stacks, allocations, DATAS, exceptions, and event filters only work when the trace contains the required events.
  • The tool converts .nettrace to a sibling .pvanalyze.etlx cache for repeated reads; this is useful but can surprise clean working directories.
  • SpeedScope output comes from cpustacks; use SpeedScope or another viewer for interactive flame graph inspection.
  • The source currently targets net8.0; the README also documents dnx pvanalyze as a .NET 10+ path.
  • If the global tool package is not available yet, use the source build path and record that in the investigation notes.

Deliver

  • the exact dotnet-trace collect command used or needed to capture the right events
  • the focused pvanalyze command and output format
  • the relevant process, time window, provider, event type, or method filter
  • any generated files such as .speedscope.json or .pvanalyze.etlx cache paths that matter for follow-up

Validate

  • pvanalyze --help or dotnet run -c Release -- --help succeeds
  • dotnet-trace --version succeeds when collection is part of the workflow
  • pvanalyze info <trace.nettrace> reads the trace before deeper analysis begins
  • JSON output parses when --format json is used
  • pvanalyze clean <trace-or-directory> removes cache files when cache cleanup is required

References

  • overview.md - source links, installation model, and tool positioning
  • commands.md - command matrix, collection recipes, and option selection

© managedcode, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (references) in catalog/Tools/pvanalyze/skills/pvanalyze of managedcode/dotnet-skills.

  • SKILL.md
  • manifest.json
  • references/commands.md
  • references/overview.md

Open the folder on GitHubat commit 535dd55

Compare with similar skills

Pvanalyze next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Pvanalyze compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Pvanalyze this skillmanagedcode/dotnet-skills486—~2kAutomated safety check: PassMIT
ccc Semantic Code Searchcocoindex-io/cocoindex-code2.7k—~938Automated safety check: PassApache-2.0
Repomix Codebase Packeryamadashy/repomix29k—~1.3kAutomated safety check: NotesMIT
Codebase Handbook BuilderRuhan-Wang/Harness_Handbook331—~2.2kAutomated safety check: PassApache-2.0
CodemapJordanCoin/codemap704—~1.8kAutomated safety check: PassMIT
MCP Code Search Tool SelectionContext-Engine-AI/Context-Engine402—~1.3kAutomated safety check: PassMIT

Similar skills

  • ccc Semantic Code Search

    cocoindex-io/cocoindex-code

    Semantic code search and index management with the ccc CLI: the agent initializes, indexes and queries the project by concept, filtering by language or path.

    2.7k GitHub stars~938 tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • Repomix Codebase Packer

    yamadashy/repomix

    Packs a local directory or remote GitHub repository into one AI-friendly file with Repomix, then searches it to explore structure, find patterns and count tokens.

    29k GitHub stars~1.3k tokensUpdated 4 days ago
    Agent WorkflowsAuto-check: notes
  • Codebase Handbook Builder

    Ruhan-Wang/Harness_Handbook

    Generates, refreshes, validates and uses a compact handbook that maps where a change touches in a repository, using the active Codex session and no external LLM API.

    331 GitHub stars~2.2k tokensUpdated 1 mo ago
    Agent WorkflowsAuto-check passed
  • Codemap

    JordanCoin/codemap

    Gives an agent a quick map of a codebase's structure, dependencies, changes and handoffs, and tunes per-project config so the output stays code-first.

    704 GitHub stars~1.8k tokensUpdated yesterday
    Agent WorkflowsAuto-check passed
  • MCP Code Search Tool Selection

    Context-Engine-AI/Context-Engine

    Rules for choosing Qdrant-Indexer semantic search over grep or file reads when exploring code, debugging or asking where and why questions.

    402 GitHub stars~1.3k tokensUpdated 3 mo ago
    Agent WorkflowsAuto-check passed
  • Repo Context Ledger

    gviiisen/repo-context-ledger

    Record every behavior-changing feature addition, fix, and adjustment as durable, evidence-based repository knowledge, then use that ledger to continue accurately across AI windows, tools, Git…

    105 GitHub stars~2.8k tokensUpdated 1 mo ago
    Agent WorkflowsAuto-check passed

More from managedcode/dotnet-skills

All 81 skills in this repo
  • Analyzer Config

    managedcode/dotnet-skills

    Use a repo-root .editorconfig to configure free .NET analyzer and style rules.

    486 GitHub stars~1.3k tokensUpdated today
    Auto-check passed
  • Archunitnet

    managedcode/dotnet-skills

    Use the open-source free ArchUnitNET library for architecture rules in .NET tests.

    486 GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Aspire

    managedcode/dotnet-skills

    Build, upgrade, and operate Aspire 13.5.x C or TypeScript application hosts with the current CLI, AppHost, ServiceDefaults, integrations, dashboard, testing, MCP, and deployment patterns for…

    486 GitHub stars~3.6k tokensUpdated today
    Auto-check passed
  • Aspnet Core

    managedcode/dotnet-skills

    Build, debug, modernize, or review ASP.NET Core applications with correct hosting, middleware, security, configuration, logging, and deployment patterns on current .NET.

    486 GitHub stars~2.1k tokensUpdated today
    Auto-check passed
  • Asynkron Profiler

    managedcode/dotnet-skills

    Use the open-source free Asynkron.Profiler dotnet tool for CLI-first CPU, allocation, exception, contention, and heap profiling of .NET commands or existing trace artifacts.

    486 GitHub stars~1.7k tokensUpdated today
    Auto-check passed
  • Azure Functions

    managedcode/dotnet-skills

    Build, review, or migrate Azure Functions in .NET with correct execution model, isolated worker setup, bindings, DI, and Durable Functions patterns.

    486 GitHub stars~2.6k tokensUpdated today
    Auto-check passed

Works with

Questions about Pvanalyze

What does Pvanalyze do?

Use pvanalyze to inspect existing .NET .nettrace files from the command line, including GC, JIT, CPU stacks, allocation, DATAS, events, exceptions, timeline, and call-tree analysis with JSON or…. Pvanalyze is an agent skill from managedcode/dotnet-skills.nettrace files from the command line, including GC, JIT, CPU stacks, allocation, DATAS, events, exceptions, timeline, and call-tree analysis with JSON or SpeedScope.

When should I use Pvanalyze?

Pvanalyze fits situations like: : the user mentions pvanalyze; perfView-style CLI trace analysis; cross-platform .nettrace inspection; the task starts from an existing .nettrace file and needs.

How do I install Pvanalyze in Claude Code?

Run `npx skills add managedcode/dotnet-skills --skill pvanalyze -a claude-code`. Or copy the skill folder (catalog/Tools/pvanalyze/skills/pvanalyze in managedcode/dotnet-skills) into .claude/skills/pvanalyze in your project. Claude Code loads it when a task matches its description.

How do I install Pvanalyze in Codex?

Run `npx skills add managedcode/dotnet-skills --skill pvanalyze -a codex`. Or copy the skill folder (catalog/Tools/pvanalyze/skills/pvanalyze in managedcode/dotnet-skills) into .agents/skills/pvanalyze in your project. Codex loads it when a task matches its description.

Can I use Pvanalyze in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add managedcode/dotnet-skills --skill pvanalyze -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pvanalyze, .gemini/skills/pvanalyze, .github/skills/pvanalyze and .opencode/skills/pvanalyze in your project.

What does Pvanalyze need to run?

Going by SKILL.md and its folder, Pvanalyze needs the command-line tools its instructions call (dotnet and git). Compatibility (from SKILL.md): Requires .NET 8 or later to run `pvanalyze`; trace collection usually requires `dotnet-trace`. Some scenarios require traces captured with verbose runtime providers or .NET 9+ DATAS events..

Does Pvanalyze access the network?

SKILL.md names 1 domain. In commands or code: github.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Pvanalyze safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Pvanalyze use?

Pvanalyze is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Pvanalyze use?

About 2k tokens (SKILL.md is roughly 7.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.7k tokens, read only when the agent opens those files.

What are the alternatives to Pvanalyze?

Skills that share tags, products or a category with Pvanalyze: ccc Semantic Code Search (cocoindex-io/cocoindex-code, 2.7k stars), Repomix Codebase Packer (yamadashy/repomix, 29k stars), Codebase Handbook Builder (Ruhan-Wang/Harness_Handbook, 331 stars) and Codemap (JordanCoin/codemap, 704 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Pvanalyze?

managedcode (a GitHub organization) maintains it in managedcode/dotnet-skills, which has 486 GitHub stars. The repository holds 81 skills in this directory. The repository was last updated on October 7, 2026.

Source: managedcode/dotnet-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.