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.
git clone --depth 1 https://github.com/mohitmishra786/low-level-dev-skillsnpx agentmods add skills/mohitmishra786/low-level-dev-skills/tracing-profilersWrote 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.
[](https://agentmods.dev/skills/mohitmishra786/low-level-dev-skills/tracing-profilers)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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;
}
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.
- 14d ago First seen · 216 lines · 110 tokens per session scan A 00b801bde99e
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.
tracing-profilers compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| tracing-profilersmohitmishra786/low-level-dev-skills | Skill | 310 | 14d ago | MIT | A | 110 | Claude Code, Codex |
| push-notification-testerteam-telnyx/ai | Skill | 232 | today | MIT | A | 55 | Claude Code |
| log-analyzermoonlight-lupin/agent-skills | Skill | 137 | 5d ago | MIT | A | 52 | Claude Code, Codex |
| debugmoonlight-lupin/agent-skills | Skill | 137 | 5d ago | MIT | A | 104 | Claude Code, Codex |
| organic-traffic-drop-diagnosiscoupler-io/skills | Skill | 45 | 2d ago | MIT | A | 187 | Claude Code |
| tiktok-ads-conversion-tracking-and-pixel-auditcoupler-io/skills | Skill | 45 | 2d ago | MIT | A | 107 | Claude Code |
| error-handlerEliasOulkadi/shokunin | Skill | 112 | 2mo ago | MIT | A | 125 | Claude Code |