realworldocaml / book

V2 of Real World OCaml
https://dev.realworldocaml.org
Other
1.18k stars 174 forks source link

Add a chapter with a small introduction on debugging and profiling #3085

Open XVilka opened 5 years ago

XVilka commented 5 years ago

A lot of changes in debugging and profiling recently in OCaml world, many online manuals are obsolete. It would be highly beneficial for newcomers to know the basics of modern OCaml debugging and profiling, with an initial setup of the corresponding tools. My suggestion is to separate it from http://dev.realworldocaml.org/compiler-backend.html into distinct chapter, update the content - e.g. kill the gprof since it was removed in the current OCaml master. Also add the information about spacetime:

XVilka commented 4 years ago

A good reference article too https://github.com/ocaml-bench/notes/blob/master/profiling_notes.md, including the new statistical profiler.

There is also https://github.com/LexiFi/landmarks profiling library.