Skip to content

Commit f37f163

Browse files
panglesdJulow
authored andcommitted
Add instrumentation with landmarks
Also, activates bisect_ppx on some modules where it was missing. To run the driver with instrumentation, - Set `let instrument = true` in doc/driver.mld's prelude. - Use `dune build --instrument-with landmarks @docgen`. The results are stored in _build/default/doc/landmarks/ and can be viewed with landmarks' web viewer. Signed-off-by: Paul-Elliot <[email protected]> Co-authored-by: Jules Aguillon <[email protected]>
1 parent 6770bcb commit f37f163

File tree

15 files changed

+43
-4
lines changed

15 files changed

+43
-4
lines changed

src/compat/dune

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
(library
22
(name compatcmdliner)
3-
(libraries cmdliner))
3+
(libraries cmdliner)
4+
(instrumentation
5+
(backend landmarks --auto))
6+
(instrumentation
7+
(backend bisect_ppx)))

src/document/dune

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,6 @@
1212
(public_name odoc.document)
1313
(instrumentation
1414
(backend bisect_ppx))
15+
(instrumentation
16+
(backend landmarks --auto))
1517
(libraries odoc_model fpath astring syntax_highlighter))

src/html/dune

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
(library
22
(name odoc_html)
33
(public_name odoc.html)
4+
(instrumentation
5+
(backend landmarks --auto))
46
(instrumentation
57
(backend bisect_ppx))
68
(libraries odoc_model odoc_document tyxml))

src/html_support_files/dune

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@
3737
(library
3838
(name odoc_html_support_files)
3939
(public_name odoc.html_support_files)
40+
(instrumentation
41+
(backend landmarks --auto))
42+
(instrumentation
43+
(backend bisect_ppx))
4044
(wrapped false))
4145

4246
(install

src/latex/dune

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
(library
22
(name odoc_latex)
33
(public_name odoc.latex)
4+
(instrumentation
5+
(backend landmarks --auto))
46
(instrumentation
57
(backend bisect_ppx))
68
(libraries odoc_model odoc_document fmt fpath))

src/manpage/dune

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
(library
22
(name odoc_manpage)
33
(public_name odoc.manpage)
4+
(instrumentation
5+
(backend landmarks --auto))
46
(instrumentation
57
(backend bisect_ppx))
68
(libraries odoc_model odoc_document))

src/model/dune

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
(public_name odoc.model)
1313
(flags
1414
(:standard -w -50))
15+
(instrumentation
16+
(backend landmarks --auto))
1517
(instrumentation
1618
(backend bisect_ppx))
1719
(libraries result compiler-libs.common odoc-parser))

src/model_desc/dune

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22
(name odoc_model_desc)
33
(public_name odoc.model_desc)
44
(libraries odoc_model)
5+
(instrumentation
6+
(backend landmarks --auto))
57
(instrumentation
68
(backend bisect_ppx)))

src/odoc/bin/dune

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,7 @@
55
(libraries compatcmdliner odoc_model odoc_odoc)
66
(flags
77
(:standard -open StdLabels))
8+
(instrumentation
9+
(backend landmarks --auto))
810
(instrumentation
911
(backend bisect_ppx)))

src/odoc/dune

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
odoc_xref2
1515
tyxml
1616
unix)
17+
(instrumentation
18+
(backend landmarks --auto))
1719
(instrumentation
1820
(backend bisect_ppx)))
1921

0 commit comments

Comments
 (0)