From: Chris Lattner Date: Fri, 16 Jan 2009 19:33:59 +0000 (+0000) Subject: Random note so I remember how to do this :) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eab819b41d64ab9624030437ca289cf864ba9f77;p=clang Random note so I remember how to do this :) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62344 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/NOTES.txt b/NOTES.txt index 0759acf355..6fc312c0c3 100644 --- a/NOTES.txt +++ b/NOTES.txt @@ -11,6 +11,13 @@ To time GCC preprocessing speed without output, use: "time gcc -MM file" This is similar to -Eonly. +//===---------------------------------------------------------------------===// + +Creating and using a PTH file for performance measurement (use a release-asserts +build). + +$ clang -x objective-c-header INPUTS/Cocoa_h.m -o /tmp/tokencache +$ clang -token-cache /tmp/tokencache INPUTS/Cocoa_h.m //===---------------------------------------------------------------------===//