第 33 章 runtime_events 函式庫

runtime_events 函式庫提供一個 API,用於從執行時接收追蹤與度量資訊。更多資訊請參閱第 ‍25 章。

使用 runtime_events 的程式必須以以下方式連結:

        ocamlc -I +runtime_events other options unix.cma runtime_events.cma other files
        ocamlopt -I +runtime_events other options unix.cmxa runtime_events.cmxa other files

使用 runtime_events 函式庫的編譯單元也必須使用 -I +runtime_events 選項進行編譯(請參閱第 ‍13 章)。