TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: Spall – WASM-based profiler for JavaScript and C and Odin

83 点作者 crdavidson超过 2 年前
[I&#x27;m the author] Spall is a web-accessible profiler that I made to help my web-dev friends load gigabyte+ JSON traces without lunch-break-long load times. Recently, Spall got experimental support for auto-tracing with binary traces (along with an in-progress native-port, to give it more memory headroom), which was used to help track down and fix some hard-to-spot lock contention issues in the Odin-language compiler.<p>I demoed it at the Handmade Seattle conference in October, <a href="https:&#x2F;&#x2F;guide.handmade-seattle.com&#x2F;c&#x2F;2022&#x2F;spall&#x2F;" rel="nofollow">https:&#x2F;&#x2F;guide.handmade-seattle.com&#x2F;c&#x2F;2022&#x2F;spall&#x2F;</a>, with a head-to-head against Perfetto, another big web profiler.<p>I&#x27;ll be around to answer any questions. Thanks for looking at my project! If you like Spall, you can catch my other projects over at <a href="https:&#x2F;&#x2F;colrdavidson.github.io&#x2F;" rel="nofollow">https:&#x2F;&#x2F;colrdavidson.github.io&#x2F;</a>.<p>If you happen to be hiring I&#x27;d love to hear from you. Looking for something fun and new to do after a long sabbatical, working on cool open-source projects!

7 条评论

qgc超过 2 年前
The comparison with Perfetto in the video is pretty damn impressive. So nice to have another player in the profiler space. Iteration time is unfortunately (and inexplicably) undervalued. My short time messing around with SpeedScope was more promising, but profiling in general has been pretty painful with all of the tools I&#x27;ve tried that ingest auto-traced input.<p>You mention in the &quot;For Everyone Else&quot; section that you have an auto-tracer system to instrument all your tracing. Aside from being very handy, how does it compare to [1] which you mention right after?<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;bvisness&#x2F;dtrace2spall">https:&#x2F;&#x2F;github.com&#x2F;bvisness&#x2F;dtrace2spall</a>
评论 #34219507 未加载
gavinray超过 2 年前
I recently read about this on the Odin monthly news, it was super impressive!<p>In the section of the interview where you talk about the difficulties you had, you discuss the challenges of making Odin work properly on WASM, and how you needed custom memory-management and allocation strategies.<p>Could you talk some more about that experience and the general process of working with that sort of low-level bit in Odin? I&#x27;ve been experimenting with using Odin to write a DB from scratch.
评论 #34220098 未加载
评论 #34219826 未加载
jerryu超过 2 年前
Web profilers definitely could use some disruption. Congratulations on the release. I am going to forward this to a friend who is actively hiring.
skytrias超过 2 年前
Hyped about the auto-tracing feature! The current version of spall has been very useful to me for some quick performance measurements.
IshKebab超过 2 年前
Very cool. JSON is clearly a terrible format for this though. I&#x27;ve had great success using SQLite instead. You mentioned binary formats in the video - what other formats are supported? Last I looked the whole chrome:&#x2F;&#x2F;tracing ecosystem was stubbornly stuck with JSON.
评论 #34222245 未加载
评论 #34222151 未加载
metadat超过 2 年前
In case you&#x27;re like me and never heard of the Odin PL:<p><a href="https:&#x2F;&#x2F;odin-lang.org&#x2F;docs&#x2F;overview&#x2F;" rel="nofollow">https:&#x2F;&#x2F;odin-lang.org&#x2F;docs&#x2F;overview&#x2F;</a>
评论 #34221125 未加载
评论 #34221625 未加载
slekker超过 2 年前
On Safari&#x2F;iOS, the webpage to the demo really doesn’t let me scroll down and keeps going back up :(
评论 #34222706 未加载
评论 #34221632 未加载