]> granicus.if.org Git - clang/commitdiff
Random note so I remember how to do this :)
authorChris Lattner <sabre@nondot.org>
Fri, 16 Jan 2009 19:33:59 +0000 (19:33 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 16 Jan 2009 19:33:59 +0000 (19:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62344 91177308-0d34-0410-b5e6-96231b3b80d8

NOTES.txt

index 0759acf3552eaf5878a9921c852911f787f490b4..6fc312c0c3b6d6767759b1aeeb887a3afb935d8f 100644 (file)
--- 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
 
 //===---------------------------------------------------------------------===//