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
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 11

  • @VladTrishch
    @VladTrishch 4 ปีที่แล้ว +5

    Thanks a lot, Philipp! I've been waiting for this one for weeks.

    • @philipphagenlocher
      @philipphagenlocher  4 ปีที่แล้ว +1

      Thank you for suggesting the topic!

    • @gordonlachlan4144
      @gordonlachlan4144 3 ปีที่แล้ว

      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

    • @derrickkayson9467
      @derrickkayson9467 3 ปีที่แล้ว

      @Gordon Lachlan yup, have been using instaflixxer for since december myself :)

  • @micknamens8659
    @micknamens8659 2 ปีที่แล้ว +1

    You could also show the resulting processor time and RAM statistics for foldl vs foldl' with ghc optimization flags.

  • @Abu3.1415
    @Abu3.1415 4 ปีที่แล้ว +2

    Can you make videos on Socket programming ?. Thanks 😊 for videos.

  • @sirnawaz
    @sirnawaz 4 ปีที่แล้ว +2

    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..

    • @sirnawaz
      @sirnawaz 4 ปีที่แล้ว +1

      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.

  • @MsKarlason
    @MsKarlason 4 ปีที่แล้ว +2

    What about debugging?

    • @philipphagenlocher
      @philipphagenlocher  4 ปีที่แล้ว +4

      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!

  • @TVSuchty
    @TVSuchty 3 ปีที่แล้ว +2

    In this video we stare into the abyss until it stares back into us.
    Oho. Nietzsche.