Haskell for Imperative Programmers #34 - Profiling
ฝัง
- เผยแพร่เมื่อ 24 ก.ค. 2024
- In this video we stare into the abyss until it stares back into us.
ThreadScope: github.com/haskell/ThreadScop...
Documentation: downloads.haskell.org/~ghc/la...
Timestamps:
00:00 - Intro
01:41 - Measuring Execution Time
08:17 - Cost Centre Stack
13:03 - Measuring Heap Allocation
16:37 - Profiling the Garbage Collector
21:01 - Code Coverage
25:40 - Profiling Multithreading
31:24 - Final Thoughts
Support me on Ko-fi:
ko-fi.com/phagenlocher - วิทยาศาสตร์และเทคโนโลยี
Thanks a lot, Philipp! I've been waiting for this one for weeks.
Thank you for suggesting the topic!
You probably dont care but if you guys are bored like me atm you can watch pretty much all the latest movies and series on instaflixxer. Have been binge watching with my brother these days xD
@Gordon Lachlan yup, have been using instaflixxer for since december myself :)
You could also show the resulting processor time and RAM statistics for foldl vs foldl' with ghc optimization flags.
Can you make videos on Socket programming ?. Thanks 😊 for videos.
It'd be really good if you give an example of how to install profiling libraries, because that does not seem to be an easy task..
ah, I found it.. Just pass `--enable-profiling` (or --enable-library-profiling or --enable-executable-profiling) to cabal which downloads the libraries. I used the first one though. Looks good so far. Thanks.
What about debugging?
Debugging is a bit of a strange subject in Haskell. I might make a video on it once we get to the topic of formal correctness!
In this video we stare into the abyss until it stares back into us.
Oho. Nietzsche.