Skip to content

Commit

Permalink
Merge remote-tracking branch 'ctk/ctk21_ocaml_landmarks_notes'
Browse files Browse the repository at this point in the history
  • Loading branch information
mtzguido committed Jun 25, 2019
2 parents 374b14a + 17c270d commit bf91811
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion _tags
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ true: \
annot, bin_annot, thread, -traverse, \
package(batteries), \
package(zarith), \
package(ppx_deriving.std), package(ppx_deriving_yojson)
package(ppx_deriving.std), \
package(ppx_deriving_yojson)

# ADL: the new unicode lexer
"src/parser/ml/FStar_Parser_LexFStar.ml": syntax(camlp4o)
Expand Down Expand Up @@ -47,3 +48,29 @@ true: \

<**/FStar_Monotonic_Seq.ml>: \
principal


#
# To use landmarks to profile ocaml code:
# - make sure landmarks is installed with opam (opam install landmarks)
# - enable the landmarks and landmarks.ppx packages
# - select the modules for auto-instrumentation
# - build the compiler
# - run the compiler with OCAML_LANDMARKS='on,output=landmarks.out'
#
# Uncomment the following to add the packages:
#
# true: \
# package(landmarks), \
# package(landmarks.ppx)
#
# Uncomment the following to profile specific modules:
#
# <src/ocaml-output/FStar_{Main,Dependencies,Universal,TypeChecker_Normalize,TypeChecker_Tc,TypeChecker_Util,SMTEncoding_Encode}.ml>: \
# ppx(`ocamlfind query landmarks.ppx`/ppx.exe --as-ppx --auto)
#
#
# NB: the fully inclusive landmarks ppx on ocaml-output/**/*.ml files can cause a stack overflow
# <src/ocaml-output/**/*.ml>: \
# ppx(`ocamlfind query landmarks.ppx`/ppx.exe --as-ppx --auto)
#

0 comments on commit bf91811

Please sign in to comment.