tree-sitter-comment
tracy
tree-sitter-comment | tracy | |
---|---|---|
6 | 57 | |
122 | 7,814 | |
- | - | |
5.3 | 9.6 | |
4 months ago | 15 days ago | |
C | C++ | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
tree-sitter-comment
-
Documentation Comment highlighting with TreeSitter
As far as I know there is currently no treesitter parser for Doxygen style comments. There is a language agnostic comment parser that is supported by nvim-treesitter that will highlight things like TODO: and NOTE: in comments. Until this recent commit nvim-treesitter provided a query for this parser that highlighted @ text in comments. It was meant to highlight a reference to a user but it doubled as a doxygen tag highlight for me for a while. I just noticed that this query has been removed and I'm not sure why but you can add it as a custom query in your Neovim config. I have yet to try this so you'll have to refer to the Neovim treesitter docs for where to add the query.
-
emacs-29: Using treesitter to highlight keywords in comments
I'm not sure how to use this in Emacs, but there's also a tree-sitter grammar specifically for comment blocks, including TODOs: https://github.com/stsewd/tree-sitter-comment
-
Will Treesitter ever be stable on big files?
you mean this one? https://github.com/stsewd/tree-sitter-comment
-
paint.nvim: Simple Neovim plugin to easily add additional highlights to your buffers
The reason I implemented this is because of the slow performance of tree-sitter-comment in large files. Treesitter will inject the comment language for every line comment, which is far from ideal. I've disabled the comment parser, but still wanted to see @something highlighted in Lua comments.
-
Treesitter query not working
The right most window shows the code I want to query. This is a .cpp file, so the main-language is C++. For highlighting the two comments, I'm using tree-sitter-comment. This plugin injects the comment-language. I want to query all tag nodes from this injected language, but this query does not work.
-
Is it possible to get highlight on these comments docs with treesitter?
You can install this parser for treesitter which highlights comments :)
tracy
- Tracy: Real-time nanosecond resolution frame profiler
-
Google/orbit – C/C++ Performance Profiler
i don't really think there is _anything_ that comes even close to tracy https://github.com/wolfpld/tracy.
on top of this, given google's penchant for dumping projects aka abandonware, this would be an easy pass.
-
Immediate Mode GUI Programming
The RemedyBG debugger (https://remedybg.handmade.network/) and the Tracy profiler (https://github.com/wolfpld/tracy) both use Dear ImGui and so far I've only read high praise from people who used those tools compared to the 'established' alternatives.
For tools like this, programmers are also just "normal users", and from the developer side, I'm sure they evaluated various alternatives with all their pros and cons before settling for Dear ImGui.
- Tracy Profiler
-
Tuning Linux for Performance
Not the person you asked, but generally you might want to look at "frame-based" profilers. These are typically used in video games, but the concept is general, and can apply to other applications. The "frame" could also be something like a request or transaction being processed. I like Tracy[1], myself.
Another latency metric that you'll see, often w/respect to web apps and microservices is "P99" and similar. This is the amount of time in which 99% of requests get their response. For a higher percentile, you get a better idea of worst-case performance.
[1] https://github.com/wolfpld/tracy
-
What is your favourite profiling tool for C++?
I've not actually used Superluminal, but I use Tracy for similar reasons. It's free though (and, importantly, open source).
-
My first game engine
For profiling, you can check tracy.
-
I got my procedural city engine / game (built from scratch in c++) running on the steam deck - does it look too garish?
You could try Tracy
-
Sharing Saturday #462
There is no such thing as overengineering in fun projects, so I've also adopted Tracy as profiling solution. Works quite nice and gonna save me plenty of times in the future debugging performance spikes on badly optimized math heavy operations.
-
Debugging and profiling embedded applications.
I know about tools such as tracing, jaeger or tracy. While having a complete tracing could be a potential solution, these tools don't work with no_std.
What are some alternatives?
tree-sitter-go-template - Golang template grammar for tree-sitter
optick - C++ Profiler For Games
tsdoc - A doc comment standard for TypeScript
orbit - C/C++ Performance Profiler
nvim-treesitter - Nvim Treesitter configurations and abstraction layer
palanteer - Visual Python and C++ nanosecond profiler, logger, tests enabler
giscus - A comment system powered by GitHub Discussions. :octocat: :speech_balloon: :gem:
pprof - pprof is a tool for visualization and analysis of profiling data
comments - Native comments for your Laravel application.
parallel-hashmap - A family of header-only, very fast and memory-friendly hashmap and btree containers.
DoxyGen-Syntax - DoxyGen Highlighting on top of c/c++/java
STL - MSVC's implementation of the C++ Standard Library.