From 3effaed55fd1415de5b3b1c30585d8748c805384 Mon Sep 17 00:00:00 2001 From: Asumu Takikawa Date: Fri, 28 Feb 2014 14:30:16 -0500 Subject: [PATCH] Add install info to TR optimization guide section --- .../scribblings/guide/optimization.scrbl | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/pkgs/typed-racket-pkgs/typed-racket-doc/typed-racket/scribblings/guide/optimization.scrbl b/pkgs/typed-racket-pkgs/typed-racket-doc/typed-racket/scribblings/guide/optimization.scrbl index 5f63b38507..3c25f27a8c 100644 --- a/pkgs/typed-racket-pkgs/typed-racket-doc/typed-racket/scribblings/guide/optimization.scrbl +++ b/pkgs/typed-racket-pkgs/typed-racket-doc/typed-racket/scribblings/guide/optimization.scrbl @@ -162,7 +162,13 @@ cases. @subsection[#:tag "optimization-coach"]{Optimization coaching} The Optimization Coach package provides optimization coaching support to help -you get the most of the Typed Racket optimizer. +you get the most of the Typed Racket optimizer. To install it, run the following +command: + +@commandline{raco pkg install optimization-coach} + +After it is installed, an "Optimization Coach" button will appear on the +DrRacket toolbar for Typed Racket programs. Similar information (albeit without in-depth explanations or advice) is available from the command line. When compiling a Typed Racket program, setting @@ -187,4 +193,11 @@ racket}; using @racket[require/typed] is unnecessary in these cases. If you suspect that contracts at a typed-untyped boundary may be have a significant cost in your program, you can investigate further using the -contract profiler. +@seclink["top" #:doc '(lib "contract-profile/scribblings/contract-profile.scrbl") + #:indirect? #t + "contract profiler"]. + +If the contract profiler is not already installed, the following command +will install it: + +@commandline{raco pkg install contract-profile}