Pr

Profiler for multi-threaded apps in 200 lines of C

Hacker News

Profiler for multi-threaded apps in 200 lines of C

For my multi-threaded app, I needed an inline profiler. Current Open Source offerings show wall-clock time only. So I decided to write one that shows you how often a task got pre-empted by the scheduler. In just 200 lines of C code: https://github.com/stolk/ThreadTracer

Share card

Actual performance

2points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Hacker NewsStrong engagement from HN community · Strong signals: open source, ide · Missing: https docs, excited, just released
65%65% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
Indie HackersFits the IH revenue-focused audience · Missing: supports, reddit linkedin, podcasting
64%64% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
Product HuntOn track for Day 1 leaderboard · Strong signals: apps, code, open · Missing: mac, agents, macos
51%51% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
TrustMRRLess likely to generate early MRR · Strong signals: apps · Missing: mobile apps, ios, personal
49%49% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
29%29% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
18%18% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
4%4% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Si
Simulating Infectious Disease in 200 lines of C60%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Simulating Infectious Disease in 200 lines of C

Hacker News5
ti
tiling windows for MacOSX in less then 200 lines of code55%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

tiling windows for MacOSX in less then 200 lines of code

Hacker News8
Sq
SquareDB; a database in 200 lines of code65%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

SquareDB; a database in 200 lines of code

Hacker News2
Mi
MissPlete – Misspelling-tolerant autocomplete in 200 lines of ES672%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

MissPlete – Misspelling-tolerant autocomplete in 200 lines of ES6

Hacker News6
Bu
Building target description in 200 lines of Lua78%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Building target description in 200 lines of Lua

Hacker News2
Py
PyProjectPlanner, budgeting and timelines in 200 lines of Python45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

PyProjectPlanner, budgeting and timelines in 200 lines of Python

Hacker News2
Sp
Spinning Cube in 45 lines, 45 Chars Each52%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Spinning Cube in 45 lines, 45 Chars Each

Hacker News1
Fl
Flappy Bird in 128 Lines of CoffeeScript43%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Flappy Bird in 128 Lines of CoffeeScript

Hacker News6
C+
C++ LMAX Disruptor < 200 LOC45%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

C++ LMAX Disruptor < 200 LOC

Hacker News3
Матрац на ліжко 160 на 200
Матрац на ліжко 160 на 20031%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Двоспальний матрац: інженерний компроміс між двома тілами

Indie Hackers