tracing-profilers

tracing-profilers is a skill for Claude Code, Codex from mohitmishra786/low-level-dev-skills. It costs 110 tokens per session (2,175 once invoked), scanned A, original, MIT.

A guide to recording timelines of work in C and C++ programs with Perfetto and Tracy. Timeline tracing shows when frames, requests, tasks, and waits happen, while sampling profiles estimate where time is spent.

In plain words
What is it for?
Use it to add trace events, capture timelines, query Perfetto data with SQL, export results, and record Tracy profiles in automated builds.
Why use it?
It helps distinguish an operation that is slow on average from one particular frame or request that was delayed by ordering or waiting. It also explains how to analyse recorded traces rather than guessing from source code.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./build-capture/tracy-capture -o game.tracy -f -s 10 &.

Good fit Use it to add trace events, capture timelines, query Perfetto data with SQL, export results, and record Tracy profiles in automated builds.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/mohitmishra786/low-level-dev-skills
agentmods
npx agentmods add skills/mohitmishra786/low-level-dev-skills/tracing-profilers

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for tracing-profilers

README.md
[![agentmods](https://agentmods.dev/badge/skills/mohitmishra786/low-level-dev-skills/tracing-profilers/github.svg)](https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/tracing-profilers)
Your own site
<a href="https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/tracing-profilers"><img src="https://agentmods.dev/badge/skills/mohitmishra786/low-level-dev-skills/tracing-profilers/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for tracing-profilers

Your own site · 80×15
<a href="https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/tracing-profilers"><img src="https://agentmods.dev/badge/skills/mohitmishra786/low-level-dev-skills/tracing-profilers.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 110 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,175 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00110 $0.02175
Opus 5.5 $0.00044 $0.00870
Sonnet 5.5 $0.00022 $0.00435
Haiku 4.5 $0.00011 $0.00217

Measured 14d ago against content hash 00b801bde99e, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

tracing-profilers scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 14d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/profilers/tracing-profilers/SKILL.md · 216 lines

How it starts

The opening of the file, as written. The whole thing — 216 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Tracing Profilers: Perfetto and Tracy

Purpose

Guide agents through instrumentation-based timeline tracing (checked with Perfetto v59.1 and Tracy 0.15.0): adding events to code, recording traces, analysing them with SQL or CSV, and choosing between tracing and sampling.

Triggers

  • "Why does one frame/request take longer than the others?"
  • "How do I add Perfetto trace events to my C++ program?"
  • "How do I query a Perfetto trace with SQL?"
  • "How do I instrument a game loop with Tracy?"
  • "Can I capture a Tracy profile without the GUI?"
  • "Should I use a tracing or a sampling profiler?"

Workflow

1. Tracing vs sampling

Question Tool
Where does CPU time go on average? Sampling: perf, flame graphs (skills/profilers/linux-perf)
Why was this frame or request slow? Ordering, waits, overlaps Tracing: Perfetto, Tracy
Long-running services, low overhead, many processes Perfetto (SDK + system tracing, SQL analysis)
Games, real-time loops, interactive live view Tracy (live GUI, frame marks, very low per-zone cost)

Instrumentation only records what you mark, so start with coarse spans (frame, request, job) and refine where the timeline shows gaps.

2. Perfetto SDK: track events

The SDK ships as two amalgamated files (perfetto-cpp-sdk-src.zip: perfetto.h, perfetto.cc).

// app.cc — Perfetto SDK track events: in-process tracing to a file
#include <perfetto.h>

#include <chrono>
#include <fstream>
#include <thread>
#include <vector>

PERFETTO_DEFINE_CATEGORIES(
    perfetto::Category("render").SetDescription("Frame rendering"),
    perfetto::Category("io").SetDescription("File and network I/O"));
PERFETTO_TRACK_EVENT_STATIC_STORAGE();

static void LoadAsset(int id) {
  TRACE_EVENT("io", "LoadAsset", "id", id);                  // slice with an argument
  std::this_thread::sleep_for(std::chrono::milliseconds(2));
}

static void DrawFrame(int frame) {
  TRACE_EVENT("render", "DrawFrame", "frame", frame);        // scoped slice
  if (frame % 10 == 0) LoadAsset(frame / 10);                 // nested slice
  std::this_thread::sleep_for(std::chrono::milliseconds(1));
  TRACE_COUNTER("render", "queue_depth", frame % 4);         // counter track
}

int main() {
  perfetto::TracingInitArgs args;
  args.backends = perfetto::kInProcessBackend;                // no traced daemon needed
  perfetto::Tracing::Initialize(args);
  perfetto::TrackEvent::Register();

  perfetto::TraceConfig cfg;
  cfg.add_buffers()->set_size_kb(4096);
  cfg.add_data_sources()->mutable_config()->set_name("track_event");

  auto session = perfetto::Tracing::NewTrace();
  session->Setup(cfg);
  session->StartBlocking();

  for (int f = 0; f < 50; f++) DrawFrame(f);

  perfetto::TrackEvent::Flush();
  session->StopBlocking();
  std::vector<char> trace = session->ReadTraceBlocking();
  std::ofstream("app.pftrace", std::ios::binary).write(trace.data(), trace.size());
  return 0;
}

Read the full file on GitHub · 216 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 14d ago First seen · 216 lines · 110 tokens per session scan A 00b801bde99e

Subscribe to this mod's changes

tracing-profilers is a skill published in the GitHub repository mohitmishra786/low-level-dev-skills (310 stars, last pushed 14d ago), licensed MIT. It adds 110 tokens to every session and 2,175 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-21.

Related

tracing-profilers compared with skills from other repositories

tracing-profilers next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tracing-profilersmohitmishra786/low-level-dev-skillsSkill31014d agoMITA110Claude Code, Codex
push-notification-testerteam-telnyx/aiSkill232todayMITA55Claude Code
log-analyzermoonlight-lupin/agent-skillsSkill1375d agoMITA52Claude Code, Codex
debugmoonlight-lupin/agent-skillsSkill1375d agoMITA104Claude Code, Codex
organic-traffic-drop-diagnosiscoupler-io/skillsSkill452d agoMITA187Claude Code
tiktok-ads-conversion-tracking-and-pixel-auditcoupler-io/skillsSkill452d agoMITA107Claude Code
error-handlerEliasOulkadi/shokuninSkill1122mo agoMITA125Claude Code