TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Tracy: A real time, nanosecond resolution frame profiler

198 pointsby Flex247A8 months ago

11 comments

vblanco8 months ago
A truly incredible profiler for the great price of free. There is nothing coming at this level of features and performance even on paid software. Tracy could cost thousands of dollars a year and would still be the best profiler.<p>Tracy requires you to add macros to your codebase to log functions&#x2F;scopes, so its not an automatic sampling profiler like superluminal, verysleepy, VS profiler, or others. Each of those macros has around 50 nanoseconds of overhead, so you can liberally use them in the millions. On the UI, it has a stats window that will record average, deviation, min&#x2F;max of those profiler zones, which can be used to profile functions at the level of single nanoseconds.<p>Its the main thing i use for all my profiling and optimization work. I combine it with superluminal (sampling profiler) to get a high level overview of the program, then i put tracy zones on the important places to get the detailed information.
评论 #41634923 未加载
评论 #41635945 未加载
评论 #41634480 未加载
Flex247A8 months ago
I am a beginner in graphics programming, and I came across this amazing frame profiler.<p>Web demo of Tracy: <a href="https:&#x2F;&#x2F;tracy.nereid.pl&#x2F;" rel="nofollow">https:&#x2F;&#x2F;tracy.nereid.pl&#x2F;</a><p>This blows my mind. It&#x27;s so fast and responsive I never expected a WebAssembly application to be!
gcr8 months ago
My favorite FOSS video game, Dr. Robotnik’s Ring Racers (<a href="http:&#x2F;&#x2F;kartkrew.org" rel="nofollow">http:&#x2F;&#x2F;kartkrew.org</a>), has Tracy support! It’s not compiled into the default build. I’ve learned a lot reading the code.
mastax8 months ago
This article is a good quick introduction to Tracy: <a href="https:&#x2F;&#x2F;luxeengine.com&#x2F;integrating-tracy-profiler-in-cpp&#x2F;" rel="nofollow">https:&#x2F;&#x2F;luxeengine.com&#x2F;integrating-tracy-profiler-in-cpp&#x2F;</a>
mastax8 months ago
I just started using this yesterday, it looks really good. Haven’t really dug into it.<p>Is the latest windows build broken for anyone else? It doesn’t start. In WinDbg it looks like it dereferences a null pointer. I built it myself and it works fine.
评论 #41637191 未加载
drpossum8 months ago
Can someone explain how this achieves nanosecond resolution? That&#x27;s an extremely difficult target to reach on computing hardware due to inherent clock resolutions and interrupt timing.
评论 #41634873 未加载
评论 #41634802 未加载
评论 #41634933 未加载
评论 #41634793 未加载
cwbaker4008 months ago
Tracy is brilliant. @wolfpld I hope you&#x27;re enjoying reading this and all of the other great comments in this thread. Great work and thank you very very much!
Green-Man8 months ago
Does anybody have an opinion or comparison with respect to easy_profiler?<p><a href="https:&#x2F;&#x2F;github.com&#x2F;yse&#x2F;easy_profiler">https:&#x2F;&#x2F;github.com&#x2F;yse&#x2F;easy_profiler</a><p>Especially interesting if based on real practical experience.
boywitharupee8 months ago
can someone explain how is profiling tools like this written for GPU applications? wouldn&#x27;t you need access to internal runtime api?<p>for ex. Apple wraps Metal buffers as &quot;Debug&quot; buffers to record allocations&#x2F;deallocations.
评论 #41635804 未加载
评论 #41635573 未加载
e-dant8 months ago
I always squint a little bit when folks mention nanoseconds.<p>The overheard of observing the time is around 60 nanoseconds.<p>Light travels about a foot in a nanosecond.<p>Below ~500 nanoseconds, things get fuzzy.
throwawaymaths8 months ago
Can anyone with experience suggest pointers on arguing Tracy vs perfetto? My team uses perfetto and I highly suspect we are running into artefacts due to that.