Repository navigation
myflames 2.1.0
myflames 2.1.0 is a Python command-line tool (Python 3.7 or later, no external dependencies) that turns MySQL and MariaDB EXPLAIN ANALYZE output into flame graphs, other plan views and compact digests for AI agents.
New features
- Adds exact GPT token counts.
myflames digest --cost --tokenizer gptcounts tokens for GPT models with tiktoken, which comes with the optionalmyflames[gpt]extra, and needs no API key or network access.
Improvements
- The
tokenscommand is nowdigest, named for what it produces: the compact plan digest you hand to an LLM.myflames digest plan.jsonprints the digest,myflames digest --costshows the token and cost savings report, and--showis now--show-prompts. - The
findingscommand is nowadvise, a verb that matchescompare,checkanddigest. Its options are unchanged.
Deprecations and removals
tokensandfindingsremain as deprecated aliases ofdigestandadvise. They print a one-line notice on stderr, keep their previous behavior (tokensstill shows the savings report by default) and will be removed in a future release.- The
--exactoption of the oldtokenscommand is removed. Use--tokenizer claudeinstead for exact Claude token counts.
Additional resources
- Download the latest myflames from myflames.io, or this version from GitHub
- New to myflames? Start with the Quickstart
- Report a problem or ask for a feature on GitHub Issues
Inspired by Brendan Gregg's FlameGraph and Tanel Poder's SQL Plan FlameGraphs.