From eab819b41d64ab9624030437ca289cf864ba9f77 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 16 Jan 2009 19:33:59 +0000 Subject: [PATCH] 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 --- NOTES.txt | 7 +++++++ 1 file changed, 7 insertions(+) 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 //===---------------------------------------------------------------------===// -- 2.40.0